mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Fix the way the IS_CONNECTED flag is set
This commit is contained in:
parent
0d2f65baea
commit
e66438de48
3 changed files with 13 additions and 16 deletions
|
@ -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()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue