aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread/dom_wrapper.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2018-04-17 19:50:49 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-04-17 20:03:55 +0200
commita82ed50257ebafe33dac5595606a4c4e548102b2 (patch)
tree7b7caeb382609be15d0b35565d1686d30e03d485 /components/layout_thread/dom_wrapper.rs
parent827b82dc398faa70b042d283ce9c65e7ea15da02 (diff)
downloadservo-a82ed50257ebafe33dac5595606a4c4e548102b2.tar.gz
servo-a82ed50257ebafe33dac5595606a4c4e548102b2.zip
style: Fix build after 1bc30a67320ce90f2e07988925a340b457f1a43a.
Diffstat (limited to 'components/layout_thread/dom_wrapper.rs')
-rw-r--r--components/layout_thread/dom_wrapper.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/layout_thread/dom_wrapper.rs b/components/layout_thread/dom_wrapper.rs
index 55bacd037cb..309ddaf7e93 100644
--- a/components/layout_thread/dom_wrapper.rs
+++ b/components/layout_thread/dom_wrapper.rs
@@ -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())