mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Add also a containing_shadow API.
This commit is contained in:
parent
2f0df1b421
commit
a19219ec79
3 changed files with 13 additions and 0 deletions
|
@ -740,6 +740,9 @@ pub trait TElement
|
|||
/// The shadow root this element is a host of.
|
||||
fn shadow_root(&self) -> Option<<Self::ConcreteNode as TNode>::ConcreteShadowRoot>;
|
||||
|
||||
/// The shadow root which roots the subtree this element is contained in.
|
||||
fn containing_shadow(&self) -> Option<<Self::ConcreteNode as TNode>::ConcreteShadowRoot>;
|
||||
|
||||
/// Return the element which we can use to look up rules in the selector
|
||||
/// maps.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue