IS_IN_SHADOW_TREE flag

This commit is contained in:
Fernando Jiménez Moreno 2019-01-23 17:34:10 +01:00
parent 569b4fce10
commit 9022bd3d11
2 changed files with 12 additions and 0 deletions

View file

@ -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