mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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>
This commit is contained in:
parent
ad48ab7ec3
commit
4242ff9626
15 changed files with 20733 additions and 123 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue