diff options
author | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2019-02-19 18:19:36 +0100 |
---|---|---|
committer | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2019-04-26 11:31:16 +0200 |
commit | e66438de48c61c1c23e92b2e77945e05a524e741 (patch) | |
tree | b013ef039bc9ced7fd073e47a2bd1372492b25f8 /components/script/dom/shadowroot.rs | |
parent | 0d2f65baea8e859af9154aed690e6ff568efa959 (diff) | |
download | servo-e66438de48c61c1c23e92b2e77945e05a524e741.tar.gz servo-e66438de48c61c1c23e92b2e77945e05a524e741.zip |
Fix the way the IS_CONNECTED flag is set
Diffstat (limited to 'components/script/dom/shadowroot.rs')
-rw-r--r-- | components/script/dom/shadowroot.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/shadowroot.rs b/components/script/dom/shadowroot.rs index 7f8d0de22f2..b562172dd05 100644 --- a/components/script/dom/shadowroot.rs +++ b/components/script/dom/shadowroot.rs @@ -46,6 +46,10 @@ impl ShadowRoot { document_fragment .upcast::<Node>() .set_flag(NodeFlags::IS_IN_SHADOW_TREE, true); + document_fragment.upcast::<Node>().set_flag( + NodeFlags::IS_CONNECTED, + host.upcast::<Node>().is_connected(), + ); ShadowRoot { document_fragment, document_or_shadow_root: DocumentOrShadowRoot::new(document.window()), |