Bug 871099. r=bzbarsky
authorMats Palmgren <matspal@gmail.com>
Tue, 28 May 2013 03:00:08 +0000
changeset 133075 6444d16bfb571233e911a7b164d85ff5a885aad1
parent 133074 aa708619790992fbc32a09142a85c8773f3a20bc
child 133076 2d8a969777c7bced25b0ab1647bbd2ebda7da2fe
push id24740
push useremorley@mozilla.com
push dateTue, 28 May 2013 11:07:27 +0000
treeherdermozilla-central@7be40b778117 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbzbarsky
bugs871099
milestone24.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 871099. r=bzbarsky
content/base/src/nsDocument.cpp
--- a/content/base/src/nsDocument.cpp
+++ b/content/base/src/nsDocument.cpp
@@ -2078,19 +2078,19 @@ nsDocument::ResetToURI(nsIURI *aURI, nsI
 
       if (nsINode::GetFirstChild() == content) {
         mFirstChild = content->GetNextSibling();
       }
       mChildren.RemoveChildAt(i);
       nsNodeUtils::ContentRemoved(this, content, i, previousSibling);
       content->UnbindFromTree();
     }
+    mCachedRootElement = nullptr;
   }
   mInUnlinkOrDeletion = oldVal;
-  mCachedRootElement = nullptr;
 
   mCustomPrototypes.Clear();
 
   // Reset our stylesheets
   ResetStylesheetsToURI(aURI);
 
   // Release the listener manager
   if (mListenerManager) {