mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Final nits; fix custom elements rare data usage; s/owner_s_r/containing_s_r
Clarify special case for containing_shadow_root and add it to layout accessor
This commit is contained in:
parent
9b2eb77530
commit
68bee1c771
6 changed files with 95 additions and 89 deletions
|
@ -19,7 +19,7 @@ pub struct NodeRareData {
|
|||
/// The shadow root the node belongs to.
|
||||
/// This is None if the node is not in a shadow tree or
|
||||
/// if it is a ShadowRoot.
|
||||
pub owner_shadow_root: Option<Dom<ShadowRoot>>,
|
||||
pub containing_shadow_root: Option<Dom<ShadowRoot>>,
|
||||
/// Registered observers for this node.
|
||||
pub mutation_observers: Vec<RegisteredObserver>,
|
||||
}
|
||||
|
@ -28,6 +28,7 @@ pub struct NodeRareData {
|
|||
#[must_root]
|
||||
pub struct ElementRareData {
|
||||
/// https://dom.spec.whatwg.org/#dom-element-shadowroot
|
||||
/// The ShadowRoot this element is host of.
|
||||
/// XXX This is currently not exposed to web content. Only for
|
||||
/// internal use.
|
||||
pub shadow_root: Option<Dom<ShadowRoot>>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue