diff options
author | Bobby Holley <bobbyholley@gmail.com> | 2015-11-05 09:58:06 -0800 |
---|---|---|
committer | Bobby Holley <bobbyholley@gmail.com> | 2015-11-10 11:57:24 -0800 |
commit | 7fa79366576751fa6d032091ea54698263783d5d (patch) | |
tree | 1eacd1b76fe400d33613afa5ff55e1d8cd0ae3ae /components/layout/layout_task.rs | |
parent | 47744d95add56352ab5d0631d3dd5e054aad3849 (diff) | |
download | servo-7fa79366576751fa6d032091ea54698263783d5d.tar.gz servo-7fa79366576751fa6d032091ea54698263783d5d.zip |
Implement attribute restyle hints.
Fixes #6942.
Diffstat (limited to 'components/layout/layout_task.rs')
-rw-r--r-- | components/layout/layout_task.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs index 514e3e71e66..d650a927ad3 100644 --- a/components/layout/layout_task.rs +++ b/components/layout/layout_task.rs @@ -1145,10 +1145,8 @@ impl LayoutTask { let modified_elements = document.drain_modified_elements(); if !needs_dirtying { - for &(el, old_state) in modified_elements.iter() { - let hint = rw_data.stylist.restyle_hint_for_state_change(&el, - el.get_state(), - old_state); + for (el, snapshot) in modified_elements { + let hint = rw_data.stylist.compute_restyle_hint(&el, &snapshot, el.get_state()); el.note_restyle_hint(hint); } } |