Bug 1383307: Use proper initializer in ServoStyleContext constructor.
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
--- 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)