diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-10-14 13:13:26 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-10-14 17:03:35 +0200 |
commit | 11485edc9e5be24186b941bb960c10afc182b9ca (patch) | |
tree | fcf95605dbedbc4f1f4362af729fb1b9cf31cecb /components/script/dom | |
parent | 48c85151dcf4cc6c84bf37913934dc342cd65515 (diff) | |
download | servo-11485edc9e5be24186b941bb960c10afc182b9ca.tar.gz servo-11485edc9e5be24186b941bb960c10afc182b9ca.zip |
style: Hide LocalMatchingContext.
This type is a lot of complexity related to a very specific thing such as the
hover and active quirk.
Instead of that, move `nesting_level` to `MatchingContext`, and simplify all
this computing whether the quirk applies upfront, for each complex selector we
test.
This is less error-prone, and also allows simplifying more stuff in a bit.
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/element.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/element.rs b/components/script/dom/element.rs index f6e5357df10..91179ee1b34 100644 --- a/components/script/dom/element.rs +++ b/components/script/dom/element.rs @@ -89,7 +89,7 @@ use script_layout_interface::message::ReflowGoal; use script_thread::ScriptThread; use selectors::Element as SelectorsElement; use selectors::attr::{AttrSelectorOperation, NamespaceConstraint, CaseSensitivity}; -use selectors::matching::{ElementSelectorFlags, LocalMatchingContext, MatchingContext, RelevantLinkStatus}; +use selectors::matching::{ElementSelectorFlags, MatchingContext, MatchingMode, RelevantLinkStatus}; use selectors::matching::{HAS_EDGE_CHILD_SELECTOR, HAS_SLOW_SELECTOR, HAS_SLOW_SELECTOR_LATER_SIBLINGS}; use selectors::sink::Push; use servo_arc::Arc; @@ -2583,7 +2583,7 @@ impl<'a> SelectorsElement for DomRoot<Element> { fn match_non_ts_pseudo_class<F>(&self, pseudo_class: &NonTSPseudoClass, - _: &mut LocalMatchingContext<Self::Impl>, + _: &mut MatchingContext, _: &RelevantLinkStatus, _: &mut F) -> bool |