Bug 1025725 - Part 1: Give nsXBLPrototypeResources::mRuleProcessor a more concrete type. r=bzbarsky
authorCameron McCormack <cam@mcc.id.au>
Thu, 19 Jun 2014 17:02:56 +1000
changeset 189464 d37890e3b9db0d966ef01eb71d2915d2e786ab7f
parent 189463 1ffd2122f12040a74b777ec51654ddd20aca9179
child 189465 6038055f6b19cb8e5a88fd2c7fde840c8d7f2e94
push id45076
push usercmccormack@mozilla.com
push dateThu, 19 Jun 2014 07:02:10 +0000
treeherdermozilla-inbound@d4e7841a2cac [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbzbarsky
bugs1025725
milestone33.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1025725 - Part 1: Give nsXBLPrototypeResources::mRuleProcessor a more concrete type. r=bzbarsky
dom/xbl/nsXBLPrototypeBinding.cpp
dom/xbl/nsXBLPrototypeResources.h
--- a/dom/xbl/nsXBLPrototypeBinding.cpp
+++ b/dom/xbl/nsXBLPrototypeBinding.cpp
@@ -32,17 +32,17 @@
 #include "nsXBLProtoImpl.h"
 #include "nsCRT.h"
 #include "nsContentUtils.h"
 #include "nsTextFragment.h"
 #include "nsTextNode.h"
 #include "nsIInterfaceInfo.h"
 #include "nsIScriptError.h"
 
-#include "nsIStyleRuleProcessor.h"
+#include "nsCSSRuleProcessor.h"
 #include "nsXBLResourceLoader.h"
 #include "mozilla/dom/CDATASection.h"
 #include "mozilla/dom/Comment.h"
 #include "mozilla/dom/Element.h"
 
 #ifdef MOZ_XUL
 #include "nsXULElement.h"
 #endif
--- a/dom/xbl/nsXBLPrototypeResources.h
+++ b/dom/xbl/nsXBLPrototypeResources.h
@@ -3,23 +3,23 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #ifndef nsXBLPrototypeResources_h__
 #define nsXBLPrototypeResources_h__
 
 #include "nsAutoPtr.h"
 #include "nsICSSLoaderObserver.h"
-#include "nsIStyleRuleProcessor.h"
 
-class nsIContent;
+class nsCSSRuleProcessor;
+class nsCSSStyleSheet;
 class nsIAtom;
-class nsXBLResourceLoader;
+class nsIContent;
 class nsXBLPrototypeBinding;
-class nsCSSStyleSheet;
+class nsXBLResourceLoader;
 
 // *********************************************************************/
 // The XBLPrototypeResources class
 
 class nsXBLPrototypeResources
 {
 public:
   nsXBLPrototypeResources(nsXBLPrototypeBinding* aBinding);
@@ -42,13 +42,13 @@ private:
   // A loader object. Exists only long enough to load resources, and then it dies.
   nsRefPtr<nsXBLResourceLoader> mLoader;
 
 public:
   // A list of loaded stylesheets for this binding.
   sheet_array_type mStyleSheetList;
 
   // The list of stylesheets converted to a rule processor.
-  nsCOMPtr<nsIStyleRuleProcessor> mRuleProcessor;
+  nsRefPtr<nsCSSRuleProcessor> mRuleProcessor;
 };
 
 #endif