diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-05-17 05:40:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-17 05:40:14 -0500 |
commit | d8b7013fcddff79a9c879077e1a564d83201359c (patch) | |
tree | 88a16d0317249297479192f769217f69a8b39895 /components/script/layout_wrapper.rs | |
parent | a7b77306f985b79d3b8b4d9b2cb51fa38f45bd39 (diff) | |
parent | 522f8489d6fca474e6aad1d341ee84a99c130738 (diff) | |
download | servo-d8b7013fcddff79a9c879077e1a564d83201359c.tar.gz servo-d8b7013fcddff79a9c879077e1a564d83201359c.zip |
Auto merge of #16900 - emilio:pseudos, r=bholley
Bug 1364850: Move PseudoElement to be just another combinator in selectors. r=bholley
On top of https://github.com/servo/servo/pull/16890.
<!-- 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/16900)
<!-- Reviewable:end -->
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, |