Bug 1282408 - add ignore initialization check flag for mFrame from SVGContextPaintImpl::Paint. r=dholbert
authorPaul Bignier <paul.bignier@gmail.com>
Tue, 13 Sep 2016 15:12:32 +0200
changeset 355171 9f69f6c8c9ca0a806c60b7b9478840ec47f1a4d0
parent 355170 c02571f1396f0669e2a29c78306972d10449518e
child 355172 497b1f1f2a3950e74bf09ef0bc516489fad25b24
push id6570
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:26:13 +0000
treeherdermozilla-beta@f455459b2ae5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs1282408
milestone51.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 1282408 - add ignore initialization check flag for mFrame from SVGContextPaintImpl::Paint. r=dholbert
layout/svg/SVGContextPaint.h
--- a/layout/svg/SVGContextPaint.h
+++ b/layout/svg/SVGContextPaint.h
@@ -162,17 +162,18 @@ public:
     }
 
     union {
       nsSVGPaintServerFrame* mPaintServerFrame;
       SVGContextPaint* mContextPaint;
       nscolor mColor;
     } mPaintDefinition;
 
-    nsIFrame* mFrame;
+    // Initialized (if needed) in SetPaintServer():
+    MOZ_INIT_OUTSIDE_CTOR nsIFrame* mFrame;
     // CTM defining the user space for the pattern we will use.
     gfxMatrix mContextMatrix;
     nsStyleSVGPaintType mPaintType;
 
     // Device-space-to-pattern-space
     gfxMatrix mPatternMatrix;
     nsRefPtrHashtable<nsFloatHashKey, gfxPattern> mPatternCache;