mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #19721 - emilio:slotted, r=heycam
style: Support ::slotted better. This allows to selector-match ::slotted, though we still don't parse it. Bug: 1425834, 1424607, 1425755 Reviewed-by: heycam MozReview-Commit-ID: ItELHkf2PMl <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19721) <!-- Reviewable:end -->
This commit is contained in:
commit
bb34b7f54a
21 changed files with 842 additions and 404 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