style: Make checks for attribute/state dependencies take stylist dirty state into account.

This is a follow-up Servo-side change for https://bugzilla.mozilla.org/show_bug.cgi?id=1352306
which caused some test failures on landing.
This commit is contained in:
Cameron McCormack 2017-06-19 09:33:02 +08:00
parent 8c58736989
commit accd2752ce
2 changed files with 18 additions and 2 deletions

View file

@ -3066,5 +3066,5 @@ pub extern "C" fn Servo_StyleSet_MightHaveAttributeDependency(raw_data: RawServo
pub extern "C" fn Servo_StyleSet_HasStateDependency(raw_data: RawServoStyleSetBorrowed,
state: u64) -> bool {
let data = PerDocumentStyleData::from_ffi(raw_data).borrow();
data.stylist.has_state_dependency(ElementState::from_bits_truncate(state))
data.stylist.might_have_state_dependency(ElementState::from_bits_truncate(state))
}