diff options
Diffstat (limited to 'components/layout_thread/dom_wrapper.rs')
-rw-r--r-- | components/layout_thread/dom_wrapper.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/layout_thread/dom_wrapper.rs b/components/layout_thread/dom_wrapper.rs index e595ac06f45..8a8a2b57131 100644 --- a/components/layout_thread/dom_wrapper.rs +++ b/components/layout_thread/dom_wrapper.rs @@ -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()) |