aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/shadowroot.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2024-12-06 23:28:34 -0500
committerGitHub <noreply@github.com>2024-12-07 04:28:34 +0000
commit4242ff9626048942d72f0352c7f8a8edecdd6a08 (patch)
treea80b61d68ad1d4ef719fdc60a8bea6856dae5985 /components/script/dom/shadowroot.rs
parentad48ab7ec3dfefb241574c316b5c0ef889e5d63e (diff)
downloadservo-4242ff9626048942d72f0352c7f8a8edecdd6a08.tar.gz
servo-4242ff9626048942d72f0352c7f8a8edecdd6a08.zip
Make traverse_preorder follow shadow roots (#34503)
* script: Ensure shadow-inclusve preorder traversals follow hosted shadow roots. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Handle unregistering element id/name values inside of a shadow root. Signed-off-by: Josh Matthews <josh@joshmatthews.net> * script: Merge shadow root tree iteration logic. Signed-off-by: Josh Matthews <josh@joshmatthews.net> --------- Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Diffstat (limited to 'components/script/dom/shadowroot.rs')
-rw-r--r--components/script/dom/shadowroot.rs7
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);
- }
}
}