From 68bee1c7717f6219bcace8f6be4de42629687eab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Jim=C3=A9nez=20Moreno?= Date: Fri, 26 Apr 2019 09:44:21 +0200 Subject: 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 --- components/script/dom/raredata.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'components/script/dom/raredata.rs') diff --git a/components/script/dom/raredata.rs b/components/script/dom/raredata.rs index 30929d2a247..2372b0b89ab 100644 --- a/components/script/dom/raredata.rs +++ b/components/script/dom/raredata.rs @@ -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>, + pub containing_shadow_root: Option>, /// Registered observers for this node. pub mutation_observers: Vec, } @@ -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>, -- cgit v1.2.3