diff --git a/components/selectors/parser.rs b/components/selectors/parser.rs index ce6bfab62c8..1d4e0614d7c 100644 --- a/components/selectors/parser.rs +++ b/components/selectors/parser.rs @@ -272,7 +272,7 @@ impl SelectorMethods for Selector { let mut current = self.iter(); let mut combinator = None; loop { - if !visitor.visit_complex_selector(current.clone(), combinator) { + if !visitor.visit_complex_selector(combinator) { return false; } diff --git a/components/selectors/visitor.rs b/components/selectors/visitor.rs index 51d335c6a74..dc2993a6aee 100644 --- a/components/selectors/visitor.rs +++ b/components/selectors/visitor.rs @@ -39,7 +39,6 @@ pub trait SelectorVisitor { /// Gets the combinator to the right of the selector, or `None` if the /// selector is the rightmost one. fn visit_complex_selector(&mut self, - _: SelectorIter, _combinator_to_right: Option) -> bool { true diff --git a/components/style/stylist.rs b/components/style/stylist.rs index bd3c30cce05..e59d9401cda 100644 --- a/components/style/stylist.rs +++ b/components/style/stylist.rs @@ -1652,7 +1652,6 @@ impl<'a> SelectorVisitor for StylistSelectorVisitor<'a> { fn visit_complex_selector( &mut self, - _: SelectorIter, combinator: Option ) -> bool { self.needs_revalidation =