diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-05-01 17:25:13 +0000 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-05-07 12:55:44 +0200 |
commit | a23ad3be501723e14a97bfb3d0f1c2b6ec21cdab (patch) | |
tree | af2cfe9589c5fb020b76eb9424d7b05b3548b2af /components/selectors/tree.rs | |
parent | 9f73576f6a61b3f1866d5eb509b849f6ad5aea36 (diff) | |
download | servo-a23ad3be501723e14a97bfb3d0f1c2b6ec21cdab.tar.gz servo-a23ad3be501723e14a97bfb3d0f1c2b6ec21cdab.zip |
style: Add parsing support for ::part().
Disabled for now of course. This should be pretty uncontroversial I'd think.
Differential Revision: https://phabricator.services.mozilla.com/D28060
Diffstat (limited to 'components/selectors/tree.rs')
-rw-r--r-- | components/selectors/tree.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/selectors/tree.rs b/components/selectors/tree.rs index badfca86ed6..b57876308a5 100644 --- a/components/selectors/tree.rs +++ b/components/selectors/tree.rs @@ -110,6 +110,11 @@ pub trait Element: Sized + Clone + Debug { case_sensitivity: CaseSensitivity, ) -> bool; + fn is_part( + &self, + name: &<Self::Impl as SelectorImpl>::PartName, + ) -> bool; + /// Returns whether this element matches `:empty`. /// /// That is, whether it does not contain any child element or any non-zero-length text node. |