Bug 1357583: style: Hook up the invalidator in the StyleSheetSet. r=heycam

MozReview-Commit-ID: IhgKAovTJMX
This commit is contained in:
Emilio Cobos Álvarez 2017-05-24 02:31:59 +02:00
parent 70f72b8f56
commit 3793cca046
2 changed files with 2 additions and 4 deletions

View File

@ -54,8 +54,7 @@ SERVO_BINDING_FUNC(Servo_StyleSet_Init, RawServoStyleSetOwned, RawGeckoPresConte
SERVO_BINDING_FUNC(Servo_StyleSet_Clear, void,
RawServoStyleSetBorrowed set)
SERVO_BINDING_FUNC(Servo_StyleSet_RebuildData, void,
RawServoStyleSetBorrowed set,
RawGeckoElementBorrowedOrNull doc_elem)
RawServoStyleSetBorrowed set)
SERVO_BINDING_FUNC(Servo_StyleSet_Drop, void, RawServoStyleSetOwned set)
SERVO_BINDING_FUNC(Servo_StyleSet_AppendStyleSheet, void,
RawServoStyleSetBorrowed set,

View File

@ -1098,8 +1098,7 @@ void
ServoStyleSet::RebuildData()
{
ClearNonInheritingStyleContexts();
Element* root = mPresContext->Document()->GetDocumentElement();
Servo_StyleSet_RebuildData(mRawSet.get(), root);
Servo_StyleSet_RebuildData(mRawSet.get());
mStylistState = StylistState::NotDirty;
}