diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-05-15 23:52:09 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-05-17 10:58:24 +0200 |
commit | 522f8489d6fca474e6aad1d341ee84a99c130738 (patch) | |
tree | deac46958e2f132881752f42a958b15f679a84d1 /components/script/layout_wrapper.rs | |
parent | 837531992864f920342020462830b933d5ed0280 (diff) | |
download | servo-522f8489d6fca474e6aad1d341ee84a99c130738.tar.gz servo-522f8489d6fca474e6aad1d341ee84a99c130738.zip |
Bug 1364850: Move PseudoElement to be just another combinator in selectors. r=bholley
MozReview-Commit-ID: 8OoOIodkKJ5
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
Diffstat (limited to 'components/script/layout_wrapper.rs')
-rw-r--r-- | components/script/layout_wrapper.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/components/script/layout_wrapper.rs b/components/script/layout_wrapper.rs index 7802d446114..4cf1789beef 100644 --- a/components/script/layout_wrapper.rs +++ b/components/script/layout_wrapper.rs @@ -652,6 +652,14 @@ impl<'le> ::selectors::Element for ServoLayoutElement<'le> { self.element.namespace() } + fn match_pseudo_element(&self, + _pseudo: &PseudoElement, + _context: &mut MatchingContext) + -> bool + { + false + } + fn match_non_ts_pseudo_class<F>(&self, pseudo_class: &NonTSPseudoClass, _: &mut MatchingContext, @@ -1150,6 +1158,14 @@ impl<'le> ::selectors::Element for ServoThreadSafeLayoutElement<'le> { self.element.get_namespace() } + fn match_pseudo_element(&self, + _pseudo: &PseudoElement, + _context: &mut MatchingContext) + -> bool + { + false + } + fn match_non_ts_pseudo_class<F>(&self, _: &NonTSPseudoClass, _: &mut MatchingContext, |