diff --git a/layout/style/ServoBindingList.h b/layout/style/ServoBindingList.h index 4962a71bc6fa..c9061c90be80 100644 --- a/layout/style/ServoBindingList.h +++ b/layout/style/ServoBindingList.h @@ -470,6 +470,8 @@ SERVO_BINDING_FUNC(Servo_ComputedValues_Inherit, ServoComputedValuesStrong, SERVO_BINDING_FUNC(Servo_ComputedValues_GetVisitedStyle, ServoComputedValuesStrong, ServoComputedValuesBorrowed values) +SERVO_BINDING_FUNC(Servo_ComputedValues_GetStyleBits, uint64_t, + ServoComputedValuesBorrowed values) // Gets the source style rules for the computed values. This returns // the result via rules, which would include a list of unowned pointers // to RawServoStyleRule. diff --git a/layout/style/ServoStyleContext.cpp b/layout/style/ServoStyleContext.cpp index d45739b3c599..2321791d6763 100644 --- a/layout/style/ServoStyleContext.cpp +++ b/layout/style/ServoStyleContext.cpp @@ -22,6 +22,7 @@ ServoStyleContext::ServoStyleContext(nsStyleContext* aParent, mSource(Move(aComputedValues)) { mPresContext = aPresContext; + AddStyleBit(Servo_ComputedValues_GetStyleBits(mSource)); FinishConstruction();