diff options
author | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2019-04-26 09:44:21 +0200 |
---|---|---|
committer | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2019-04-29 12:02:04 +0200 |
commit | 68bee1c7717f6219bcace8f6be4de42629687eab (patch) | |
tree | 64f4a3cee7816f98f413adc66dab24bf3e548830 /components/script/dom/raredata.rs | |
parent | 9b2eb775302b84542ab8fea921ab441342fe79c3 (diff) | |
download | servo-68bee1c7717f6219bcace8f6be4de42629687eab.tar.gz servo-68bee1c7717f6219bcace8f6be4de42629687eab.zip |
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
Diffstat (limited to 'components/script/dom/raredata.rs')
-rw-r--r-- | components/script/dom/raredata.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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<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>>, |