mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
style: Add invalidation support for ::slotted().
Bug: 1424607 Reviewed-by: heycam MozReview-Commit-ID: 8pIVUx27o7x
This commit is contained in:
parent
040379208e
commit
b26f3280d2
7 changed files with 294 additions and 110 deletions
|
@ -363,6 +363,10 @@ impl<'le> TElement for ServoLayoutElement<'le> {
|
|||
LayoutIterator(self.as_node().dom_children())
|
||||
}
|
||||
|
||||
fn is_html_element(&self) -> bool {
|
||||
unsafe { self.element.is_html_element() }
|
||||
}
|
||||
|
||||
fn style_attribute(&self) -> Option<ArcBorrow<StyleLocked<PropertyDeclarationBlock>>> {
|
||||
unsafe {
|
||||
(*self.element.style_attribute()).as_ref().map(|x| x.borrow_arc())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue