Bug 852923, r=bz, a=lsblakk
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Thu, 21 Mar 2013 23:00:09 +0100
changeset 128673 c3107b4bd85a56642257f869ae964ad1f39ec271
parent 128672 5c828cb5ec46af1b74354deaa8ee00daff3b1a66
child 128674 7f181c6fb9be96ef3a37330c63f272bf5195a065
push id3544
push useropettay@mozilla.com
push dateThu, 21 Mar 2013 22:03:51 +0000
treeherdermozilla-aurora@c3107b4bd85a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz, lsblakk
bugs852923
milestone21.0a2
Bug 852923, r=bz, a=lsblakk
layout/xul/base/src/nsBoxObject.cpp
--- a/layout/xul/base/src/nsBoxObject.cpp
+++ b/layout/xul/base/src/nsBoxObject.cpp
@@ -130,17 +130,17 @@ nsBoxObject::GetFrame(bool aFlushLayout)
 
 nsIPresShell*
 nsBoxObject::GetPresShell(bool aFlushLayout)
 {
   if (!mContent) {
     return nullptr;
   }
 
-  nsIDocument* doc = mContent->GetCurrentDoc();
+  nsCOMPtr<nsIDocument> doc = mContent->GetCurrentDoc();
   if (!doc) {
     return nullptr;
   }
 
   if (aFlushLayout) {
     doc->FlushPendingNotifications(Flush_Layout);
   }