diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-05-24 19:53:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-24 19:53:48 -0500 |
commit | 1f323f8848e47b01779de5145dd21d0f74ed16ca (patch) | |
tree | e6255957ec4d4055f033d7f039cf1c6adc3563ad /components/style/servo/selector_parser.rs | |
parent | e457d22f81ac0f45c4dc96867162f276de7bd291 (diff) | |
parent | f12af6c8d606f63fbba32e1dc3580f38604da24a (diff) | |
download | servo-1f323f8848e47b01779de5145dd21d0f74ed16ca.tar.gz servo-1f323f8848e47b01779de5145dd21d0f74ed16ca.zip |
Auto merge of #17032 - jryans:stylo-visited, r=emilio
Stylo: visited pseudo-class support
Reviewed in https://bugzilla.mozilla.org/show_bug.cgi?id=1328509
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17032)
<!-- Reviewable:end -->
Diffstat (limited to 'components/style/servo/selector_parser.rs')
-rw-r--r-- | components/style/servo/selector_parser.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/components/style/servo/selector_parser.rs b/components/style/servo/selector_parser.rs index 1cae314ddec..34cec12b83f 100644 --- a/components/style/servo/selector_parser.rs +++ b/components/style/servo/selector_parser.rs @@ -16,7 +16,6 @@ use restyle_hints::ElementSnapshot; use selector_parser::{ElementExt, PseudoElementCascadeType, SelectorParser}; use selectors::Element; use selectors::attr::{AttrSelectorOperation, NamespaceConstraint}; -use selectors::matching::{MatchingContext, MatchingMode}; use selectors::parser::SelectorMethods; use selectors::visitor::SelectorVisitor; use std::borrow::Cow; @@ -601,13 +600,6 @@ impl ServoElementSnapshot { } impl<E: Element<Impl=SelectorImpl> + Debug> ElementExt for E { - fn is_link(&self) -> bool { - let mut context = MatchingContext::new(MatchingMode::Normal, None); - self.match_non_ts_pseudo_class(&NonTSPseudoClass::AnyLink, - &mut context, - &mut |_, _| {}) - } - #[inline] fn matches_user_and_author_rules(&self) -> bool { true |