Only allow UA widgets as children of media elements

Do not allow pseudo-elements for replaced elements
This commit is contained in:
Fernando Jiménez Moreno 2019-05-13 17:29:23 +02:00
parent 618f528344
commit e344203c11
6 changed files with 16 additions and 11 deletions

View file

@ -1397,6 +1397,10 @@ impl<'le> ThreadSafeLayoutElement for ServoThreadSafeLayoutElement<'le> {
.expect("Unstyled layout node?")
.borrow()
}
fn is_shadow_host(&self) -> bool {
self.element.shadow_root().is_some()
}
}
/// This implementation of `::selectors::Element` is used for implementing lazy