diff options
Diffstat (limited to 'components/selectors/tree.rs')
-rw-r--r-- | components/selectors/tree.rs | 7 |
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 + } } |