Bug 1383307: Use proper initializer in ServoStyleContext constructor. r=manishearth
authorEmilio Cobos Álvarez <emilio@crisal.io>
Sun, 23 Jul 2017 05:06:06 +0200
changeset 419187 e170c7eca2c441a1453cbddfd8b16269a22ea868
parent 419186 37c161b31cf5e7c2f460b0e37b372c45cfb57904
child 419188 c92ef054df2b9e00608a537c92e92317118e7c95
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmanishearth
bugs1383307
milestone56.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 1383307: Use proper initializer in ServoStyleContext constructor. r=manishearth Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
layout/style/ServoStyleContext.cpp
--- a/layout/style/ServoStyleContext.cpp
+++ b/layout/style/ServoStyleContext.cpp
@@ -17,21 +17,20 @@ namespace mozilla {
 
 ServoStyleContext::ServoStyleContext(
     nsStyleContext* aParent,
     nsPresContext* aPresContext,
     nsIAtom* aPseudoTag,
     CSSPseudoElementType aPseudoType,
     ServoComputedDataForgotten aComputedValues)
   : nsStyleContext(aParent, aPseudoTag, aPseudoType)
+  , mPresContext(aPresContext)
   , mSource(aComputedValues)
 {
-  mPresContext = aPresContext;
   AddStyleBit(Servo_ComputedValues_GetStyleBits(this));
-
   FinishConstruction();
 
   // No need to call ApplyStyleFixups here, since fixups are handled by Servo when
   // producing the ServoComputedData.
 }
 
 void
 ServoStyleContext::UpdateWithElementState(Element* aElementForAnimation)