Bug 852923, r=bz, a=lsblakk
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Thu, 21 Mar 2013 23:01:52 +0100
changeset 127786 3c440715a9b240515704412bec83bd9fa18222ad
parent 127785 3ed701c01eb27e9f26f149c60a9c2ce684ee29e7
child 127787 f0c740037877ec9f15a31ed5f9b76beb1ee37e64
push id1
push usersledru@mozilla.com
push dateThu, 04 Dec 2014 17:57:20 +0000
reviewersbz, lsblakk
bugs852923
milestone20.0
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
@@ -132,17 +132,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);
   }