Bug 1302975 - initialise mFrame in Paint constructor. r?longsonr draft
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Thu, 15 Sep 2016 13:26:40 +0300
changeset 413940 99b70dfef725d7f3a332025cc9a982abfa4f2642
parent 413272 82d0a583a9a39bf0b0000bccbf6d5c9ec2596bcc
child 531346 2a83ab0074d9b2f06b544f327d7484dcabee5d9c
push id29562
push userbmo:bpostelnicu@mozilla.com
push dateThu, 15 Sep 2016 10:27:42 +0000
reviewerslongsonr
bugs1302975
milestone51.0a1
Bug 1302975 - initialise mFrame in Paint constructor. r?longsonr MozReview-Commit-ID: HYeHXaSmDQr
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;