Bug 793065. Keep mRootPresContext alive in case something crazy happens. r=mattwoodrow
authorRobert O'Callahan <robert@ocallahan.org>
Fri, 05 Oct 2012 16:20:35 +1300
changeset 109592 7c119b50e7aa02965dcb82fd134f6fe467c4a7d3
parent 109591 2d39dbbe75b3205e36219acbba451066feb10b51
child 109593 7abf134ad3409ca01c6600e0dc3fe4053d4dc3e8
push id23636
push usergsharp@mozilla.com
push dateMon, 08 Oct 2012 08:08:19 +0000
treeherdermozilla-central@24cf40690042 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattwoodrow
bugs793065
milestone18.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 793065. Keep mRootPresContext alive in case something crazy happens. r=mattwoodrow
layout/base/FrameLayerBuilder.h
--- a/layout/base/FrameLayerBuilder.h
+++ b/layout/base/FrameLayerBuilder.h
@@ -748,17 +748,17 @@ protected:
   /**
    * The layer manager belonging to the widget that is being retained
    * across paints.
    */
   LayerManager*                       mRetainingManager;
   /**
    * The root prescontext for the display list builder reference frame
    */
-  nsRootPresContext*                  mRootPresContext;
+  nsRefPtr<nsRootPresContext>         mRootPresContext;
 
   /**
    * The display list builder being used.
    */
   nsDisplayListBuilder*               mDisplayListBuilder;
   /**
    * A map from frames to a list of (display item key, layer) pairs that
    * describes what layers various parts of the frame are assigned to.