aboutsummaryrefslogtreecommitdiffstats
path: root/components/selectors/tree.rs
diff options
context:
space:
mode:
authorcku <cku@mozilla.com>2017-06-20 16:44:59 +0800
committercku <cku@mozilla.com>2017-06-20 18:07:36 +0800
commit727725ac3d3e8f568e735898042c49e06f08aa58 (patch)
tree44a0a72b5858cdc5da609f22dcf7d91aed1f0c90 /components/selectors/tree.rs
parent4d997f0d0c87fbce1808d4a97a6c13a68a3c6fdb (diff)
downloadservo-727725ac3d3e8f568e735898042c49e06f08aa58.tar.gz
servo-727725ac3d3e8f568e735898042c49e06f08aa58.zip
Stylo: Correct style match for element instances under a use-element tree.
Diffstat (limited to 'components/selectors/tree.rs')
-rw-r--r--components/selectors/tree.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/selectors/tree.rs b/components/selectors/tree.rs
index 99c07c6bf3b..7827dc6bbe6 100644
--- a/components/selectors/tree.rs
+++ b/components/selectors/tree.rs
@@ -85,4 +85,11 @@ pub trait Element: Sized + Debug {
/// Note: this can be false even if `.parent_element()` is `None`
/// if the parent node is a `DocumentFragment`.
fn is_root(&self) -> bool;
+
+ /// Return true if we want to stop lookup ancestor of the current
+ /// element while matching complex selectors with descendant/child
+ /// combinator.
+ fn blocks_ancestor_combinators(&self) -> bool {
+ false
+ }
}