diff options
Diffstat (limited to 'components/script/dom/shadowroot.rs')
-rw-r--r-- | components/script/dom/shadowroot.rs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/components/script/dom/shadowroot.rs b/components/script/dom/shadowroot.rs index 58fb42b57da..da918ec0f51 100644 --- a/components/script/dom/shadowroot.rs +++ b/components/script/dom/shadowroot.rs @@ -315,13 +315,6 @@ impl VirtualMethods for ShadowRoot { let document = document_from_node(self); document.unregister_shadow_root(self); } - - let shadow_root = self.upcast::<Node>(); - shadow_root.set_flag(NodeFlags::IS_CONNECTED, false); - for node in shadow_root.children() { - node.set_flag(NodeFlags::IS_CONNECTED, false); - node.unbind_from_tree(context); - } } } |