diff options
Diffstat (limited to 'components/style/traversal.rs')
-rw-r--r-- | components/style/traversal.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/style/traversal.rs b/components/style/traversal.rs index df70c29664c..b37b10ef94f 100644 --- a/components/style/traversal.rs +++ b/components/style/traversal.rs @@ -9,7 +9,7 @@ use atomic_refcell::{AtomicRefCell, AtomicRefMut}; use context::{SharedStyleContext, StyleContext, ThreadLocalStyleContext}; use data::{ElementData, ElementStyles, StoredRestyleHint}; -use dom::{NodeInfo, TElement, TNode}; +use dom::{DirtyDescendants, NodeInfo, TElement, TNode}; use matching::{MatchMethods, MatchResults}; use restyle_hints::{RESTYLE_DESCENDANTS, RESTYLE_SELF}; use selector_parser::RestyleDamage; @@ -388,7 +388,7 @@ fn resolve_style_internal<E, F>(context: &mut StyleContext<E>, // Conservatively mark us as having dirty descendants, since there might // be other unstyled siblings we miss when walking straight up the parent // chain. - unsafe { element.set_dirty_descendants() }; + unsafe { element.note_descendants::<DirtyDescendants>() }; } // If we're display:none and none of our ancestors are, we're the root |