mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Fix build after 1bc30a6732
.
This commit is contained in:
parent
827b82dc39
commit
a82ed50257
2 changed files with 10 additions and 1 deletions
|
@ -397,6 +397,14 @@ impl<'le> TElement for ServoLayoutElement<'le> {
|
|||
unsafe { self.element.is_html_element() }
|
||||
}
|
||||
|
||||
fn is_mathml_element(&self) -> bool {
|
||||
*self.element.namespace() == ns!(mathml)
|
||||
}
|
||||
|
||||
fn is_svg_element(&self) -> bool {
|
||||
*self.element.namespace() == ns!(svg)
|
||||
}
|
||||
|
||||
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