mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
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:
parent
8c58736989
commit
accd2752ce
2 changed files with 18 additions and 2 deletions
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue