diff options
author | Bobby Holley <bobbyholley@gmail.com> | 2015-10-20 21:58:50 -0700 |
---|---|---|
committer | Bobby Holley <bobbyholley@gmail.com> | 2015-10-31 14:28:52 -0700 |
commit | 45fc7f2930682fc52822db0e5aaaeab0f732229a (patch) | |
tree | c923565aa6b821d668cbb76e67d7e89cd7a3ee81 /components/layout/layout_task.rs | |
parent | 41dfd07d16340d437182c83517484b16303a83c9 (diff) | |
download | servo-45fc7f2930682fc52822db0e5aaaeab0f732229a.tar.gz servo-45fc7f2930682fc52822db0e5aaaeab0f732229a.zip |
Implement restyle hints for state changes.
Diffstat (limited to 'components/layout/layout_task.rs')
-rw-r--r-- | components/layout/layout_task.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs index 4ebe8363fbc..273d56bca80 100644 --- a/components/layout/layout_task.rs +++ b/components/layout/layout_task.rs @@ -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); } } |