aboutsummaryrefslogtreecommitdiffstats
path: root/components/selectors/parser.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-01-12 15:40:16 +0100
committerSimon Sapin <simon.sapin@exyr.org>2018-01-12 15:40:16 +0100
commit1a6010f19fc4064de8a285194dbace78770716ec (patch)
treedfd029120ee3905a0e6cf4e1ea0943cc474c8802 /components/selectors/parser.rs
parentc14b766ff512dac4014f9f24a44938d7d449450b (diff)
downloadservo-1a6010f19fc4064de8a285194dbace78770716ec.tar.gz
servo-1a6010f19fc4064de8a285194dbace78770716ec.zip
Document selectors::Visit
Diffstat (limited to 'components/selectors/parser.rs')
-rw-r--r--components/selectors/parser.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/components/selectors/parser.rs b/components/selectors/parser.rs
index 18447d1f9a5..5543914c3f6 100644
--- a/components/selectors/parser.rs
+++ b/components/selectors/parser.rs
@@ -19,7 +19,7 @@ use std::borrow::{Borrow, Cow};
use std::fmt::{self, Display, Debug, Write};
use std::iter::Rev;
use std::slice;
-use visitor::SelectorVisitor;
+pub use visitor::{Visit, SelectorVisitor};
/// A trait that represents a pseudo-element.
pub trait PseudoElement : Sized + ToCss {
@@ -326,14 +326,6 @@ impl AncestorHashes {
}
}
-pub trait Visit {
- type Impl: SelectorImpl;
-
- fn visit<V>(&self, visitor: &mut V) -> bool
- where
- V: SelectorVisitor<Impl = Self::Impl>;
-}
-
impl<Impl: SelectorImpl> Visit for Selector<Impl> {
type Impl = Impl;