mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Implement restyle hints for state changes.
This commit is contained in:
parent
41dfd07d16
commit
45fc7f2930
5 changed files with 315 additions and 28 deletions
|
@ -1182,9 +1182,10 @@ impl LayoutTask {
|
|||
|
||||
let state_changes = document.drain_element_state_changes();
|
||||
if !needs_dirtying {
|
||||
for &(el, state) in state_changes.iter() {
|
||||
assert!(!state.is_empty());
|
||||
el.note_state_change();
|
||||
for &(el, state_change) in state_changes.iter() {
|
||||
debug_assert!(!state_change.is_empty());
|
||||
let hint = rw_data.stylist.restyle_hint_for_state_change(&el, el.get_state(), state_change);
|
||||
el.note_restyle_hint(hint);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue