Bug 1179451 - Part 2: Fix incorrect return type. r=ehsan
authorAryeh Gregor <ayg@aryeh.name>
Thu, 13 Aug 2015 15:22:48 +0300
changeset 257838 1b6f0c5df0e4689df9557037ad70753785151e93
parent 257837 1c0791d5bce7381fe18dae8428fca50d52774499
child 257839 3eeaaee7238783ff488e2e74de89127be06eb1e0
push id29230
push userryanvm@gmail.com
push dateFri, 14 Aug 2015 19:16:25 +0000
treeherdermozilla-central@09dd35dd1193 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs1179451
milestone43.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 1179451 - Part 2: Fix incorrect return type. r=ehsan
dom/base/ImportManager.cpp
dom/base/ImportManager.h
--- a/dom/base/ImportManager.cpp
+++ b/dom/base/ImportManager.cpp
@@ -701,17 +701,17 @@ ImportManager::Find(nsINode* aLink)
 }
 
 void
 ImportManager::AddLoaderWithNewURI(ImportLoader* aLoader, nsIURI* aNewURI)
 {
   mImports.Put(aNewURI, aLoader);
 }
 
-nsRefPtr<ImportLoader> ImportManager::GetNearestPredecessor(nsINode* aNode)
+ImportLoader* ImportManager::GetNearestPredecessor(nsINode* aNode)
 {
   // Return the previous link if there is any in the same document.
   nsIDocument* doc = aNode->OwnerDoc();
   int32_t idx = doc->IndexOfSubImportLink(aNode);
   MOZ_ASSERT(idx != -1, "aNode must be a sub import link of its owner document");
 
   for (; idx > 0; idx--) {
     HTMLLinkElement* link =
--- a/dom/base/ImportManager.h
+++ b/dom/base/ImportManager.h
@@ -260,17 +260,17 @@ public:
   // When a new import link is added, this getter either creates
   // a new ImportLoader for it, or returns an existing one if
   // it was already created and in the import map.
   already_AddRefed<ImportLoader> Get(nsIURI* aURI, nsINode* aNode,
                                      nsIDocument* aOriginDocument);
 
   // It finds the predecessor for an import link node that runs its
   // scripts the latest among its predecessors.
-  nsRefPtr<ImportLoader> GetNearestPredecessor(nsINode* aNode);
+  ImportLoader* GetNearestPredecessor(nsINode* aNode);
 
 private:
   ImportMap mImports;
 };
 
 } // namespace dom
 } // namespace mozilla