diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-06-11 17:41:51 +0000 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-06-25 13:11:27 +0200 |
commit | f0bf7d6481a97bd75264af3d379bff5338d174b2 (patch) | |
tree | 368f3e11ae7f75e0f99ecf0efc7ca227f5c5e54d /components/style/dom.rs | |
parent | a4690ce158a34553c781cf138b033fd2ec27e420 (diff) | |
download | servo-f0bf7d6481a97bd75264af3d379bff5338d174b2.tar.gz servo-f0bf7d6481a97bd75264af3d379bff5338d174b2.zip |
style: Add plumbing code to invalidate shadow parts.
Still does nothing, since we still do not collect part rules, but this is all
the plumbing that should allow us to invalidate parts when attributes or state
change on their ancestors.
Differential Revision: https://phabricator.services.mozilla.com/D32642
Diffstat (limited to 'components/style/dom.rs')
-rw-r--r-- | components/style/dom.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/components/style/dom.rs b/components/style/dom.rs index 04d6a79b384..0a743c60207 100644 --- a/components/style/dom.rs +++ b/components/style/dom.rs @@ -346,6 +346,14 @@ pub trait TShadowRoot: Sized + Copy + Clone + PartialEq { where Self: 'a; + /// Get the list of shadow parts for this shadow root. + fn parts<'a>(&self) -> &[<Self::ConcreteNode as TNode>::ConcreteElement] + where + Self: 'a + { + &[] + } + /// Get a list of elements with a given ID in this shadow root, sorted by /// tree position. /// |