mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
IS_IN_SHADOW_TREE flag
This commit is contained in:
parent
569b4fce10
commit
9022bd3d11
2 changed files with 12 additions and 0 deletions
|
@ -484,6 +484,9 @@ impl Element {
|
|||
return Err(Error::InvalidState);
|
||||
}
|
||||
|
||||
self.upcast::<Node>()
|
||||
.set_flag(NodeFlags::IS_IN_SHADOW_TREE, true);
|
||||
|
||||
// Steps 4, 5 and 6.
|
||||
Ok(self
|
||||
.shadow_root
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue