diff options
Diffstat (limited to 'components/style/restyle_hints.rs')
-rw-r--r-- | components/style/restyle_hints.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/components/style/restyle_hints.rs b/components/style/restyle_hints.rs index 9fe5e8a439e..594246f4838 100644 --- a/components/style/restyle_hints.rs +++ b/components/style/restyle_hints.rs @@ -490,7 +490,6 @@ struct Dependency { pub struct SelectorDependencyVisitor<'a> { dependency_set: &'a mut DependencySet, needs_cache_revalidation: bool, - affected_by_attribute: bool, } impl<'a> SelectorDependencyVisitor<'a> { @@ -499,7 +498,6 @@ impl<'a> SelectorDependencyVisitor<'a> { SelectorDependencyVisitor { dependency_set: dependency_set, needs_cache_revalidation: false, - affected_by_attribute: false, } } @@ -508,12 +506,6 @@ impl<'a> SelectorDependencyVisitor<'a> { pub fn needs_cache_revalidation(&self) -> bool { self.needs_cache_revalidation } - - /// Returns whether this visitor has known of a attribute-dependent - /// selector. - pub fn affected_by_attribute(&self) -> bool { - self.affected_by_attribute - } } impl<'a> SelectorVisitor for SelectorDependencyVisitor<'a> { @@ -537,7 +529,7 @@ impl<'a> SelectorVisitor for SelectorDependencyVisitor<'a> { let hint = combinator_to_restyle_hint(combinator); - self.affected_by_attribute |= sensitivities.attrs; + self.needs_cache_revalidation |= sensitivities.attrs; self.needs_cache_revalidation |= hint.intersects(RESTYLE_LATER_SIBLINGS); if !sensitivities.is_empty() { |