mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Simplify dependency visitor, avoid tracking dependencies of nested complex selectors separately.
This commit is contained in:
parent
568fa4cc0d
commit
9e33cd5643
4 changed files with 67 additions and 76 deletions
|
@ -145,7 +145,7 @@ impl<Impl: SelectorImpl> SelectorMethods for Selector<Impl> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<Impl: SelectorImpl> SelectorMethods for Arc<ComplexSelector<Impl>> {
|
||||
impl<Impl: SelectorImpl> SelectorMethods for ComplexSelector<Impl> {
|
||||
type Impl = Impl;
|
||||
|
||||
fn visit<V>(&self, visitor: &mut V) -> bool
|
||||
|
|
|
@ -34,7 +34,7 @@ pub trait SelectorVisitor {
|
|||
/// Gets the combinator to the right of the selector, or `None` if the
|
||||
/// selector is the leftmost one.
|
||||
fn visit_complex_selector(&mut self,
|
||||
_: &Arc<ComplexSelector<Self::Impl>>,
|
||||
_: &ComplexSelector<Self::Impl>,
|
||||
_combinator_to_right: Option<Combinator>)
|
||||
-> bool {
|
||||
true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue