Bug 1383307: Use proper initializer in ServoStyleContext constructor. draft
authorEmilio Cobos Álvarez <emilio@crisal.io>
Sun, 23 Jul 2017 05:06:06 +0200
changeset 614043 913436d4eb16aaece7419d82d9f3e6640a4772d2
parent 614042 37c161b31cf5e7c2f460b0e37b372c45cfb57904
child 614044 5d580823fc679666c9c63878872165364924f5f2
push id69896
push userbmo:emilio+bugs@crisal.io
push dateSun, 23 Jul 2017 21:57:53 +0000
bugs1383307
milestone56.0a1
Bug 1383307: Use proper initializer in ServoStyleContext constructor. 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)