mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Set IS_CONNECTED flag on host and children instead of on containing shadow root
This commit is contained in:
parent
1427c43620
commit
b8925a0297
1 changed files with 1 additions and 1 deletions
|
@ -2802,7 +2802,7 @@ impl VirtualMethods for Element {
|
||||||
f.bind_form_control_to_tree();
|
f.bind_form_control_to_tree();
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(shadow_root) = self.upcast::<Node>().owner_shadow_root() {
|
if let Some(shadow_root) = self.rare_data.shadow_root.get() {
|
||||||
let shadow_root = shadow_root.upcast::<Node>();
|
let shadow_root = shadow_root.upcast::<Node>();
|
||||||
shadow_root.set_flag(NodeFlags::IS_CONNECTED, context.tree_connected);
|
shadow_root.set_flag(NodeFlags::IS_CONNECTED, context.tree_connected);
|
||||||
for node in shadow_root.children() {
|
for node in shadow_root.children() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue