Bug 1207734 - Part 1.b. Do not initialize mSpecifiedTransform in ctor. r=emilio draft
authorcku <cku@mozilla.com>
Thu, 07 Dec 2017 10:32:18 +0800
changeset 749181 f2dc6cad129e9f5c8c8c056c934d2ed3f2e30155
parent 749180 f5a560721ed0b41ca8c906cf6a394ce763d49949
child 749182 a5b445762b46d3c247e4a57864c66454f5d58218
push id97349
push userbbirtles@mozilla.com
push dateWed, 31 Jan 2018 02:59:16 +0000
reviewersemilio
bugs1207734
milestone60.0a1
Bug 1207734 - Part 1.b. Do not initialize mSpecifiedTransform in ctor. r=emilio nsDisplayList::mSpecifiedTransform is a RefPtr, no need put it into intialize list. MozReview-Commit-ID: B04gytHwb2K
layout/style/nsStyleStruct.cpp
--- a/layout/style/nsStyleStruct.cpp
+++ b/layout/style/nsStyleStruct.cpp
@@ -3576,17 +3576,16 @@ nsStyleDisplay::nsStyleDisplay(const nsP
   , mOverscrollBehaviorY(StyleOverscrollBehavior::Auto)
   , mScrollSnapTypeX(NS_STYLE_SCROLL_SNAP_TYPE_NONE)
   , mScrollSnapTypeY(NS_STYLE_SCROLL_SNAP_TYPE_NONE)
   , mScrollSnapPointsX(eStyleUnit_None)
   , mScrollSnapPointsY(eStyleUnit_None)
   , mBackfaceVisibility(NS_STYLE_BACKFACE_VISIBILITY_VISIBLE)
   , mTransformStyle(NS_STYLE_TRANSFORM_STYLE_FLAT)
   , mTransformBox(StyleGeometryBox::BorderBox)
-  , mSpecifiedTransform(nullptr)
   , mTransformOrigin{ {0.5f, eStyleUnit_Percent}, // Transform is centered on origin
                       {0.5f, eStyleUnit_Percent},
                       {0, nsStyleCoord::CoordConstructor} }
   , mChildPerspective(eStyleUnit_None)
   , mPerspectiveOrigin{ {0.5f, eStyleUnit_Percent},
                         {0.5f, eStyleUnit_Percent} }
   , mVerticalAlign(NS_STYLE_VERTICAL_ALIGN_BASELINE, eStyleUnit_Enumerated)
   , mTransitions(nsStyleAutoArray<StyleTransition>::WITH_SINGLE_INITIAL_ELEMENT)