Bug 1364274 part 1 - Propagate style bits from Servo ComputedValues to ServoStyleContext. r=heycam

MozReview-Commit-ID: KewMPDdX8iy

--HG--
extra : rebase_source : 7e38904b7c5f229e5527b02008cac6459a8bcdc8
This commit is contained in:
Xidorn Quan 2017-07-04 16:49:50 +10:00
parent a0d0686267
commit 180940d947
2 changed files with 3 additions and 0 deletions

View File

@ -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.

View File

@ -22,6 +22,7 @@ ServoStyleContext::ServoStyleContext(nsStyleContext* aParent,
mSource(Move(aComputedValues))
{
mPresContext = aPresContext;
AddStyleBit(Servo_ComputedValues_GetStyleBits(mSource));
FinishConstruction();