aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread/dom_wrapper.rs
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2019-06-11 15:48:36 +0200
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2019-07-22 17:40:16 +0200
commit1f3c879a85a128c89e1a962e10e1e3d11550d37b (patch)
treef5015697a17c5ef83e02d183c5bcb3eb444b2794 /components/layout_thread/dom_wrapper.rs
parentf8ae394cadb28958e52ae941bc3a89f4ea7fb4b5 (diff)
downloadservo-1f3c879a85a128c89e1a962e10e1e3d11550d37b.tar.gz
servo-1f3c879a85a128c89e1a962e10e1e3d11550d37b.zip
Detach shadow clean up
Diffstat (limited to 'components/layout_thread/dom_wrapper.rs')
-rw-r--r--components/layout_thread/dom_wrapper.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/layout_thread/dom_wrapper.rs b/components/layout_thread/dom_wrapper.rs
index 5d815517532..32fccdeecdd 100644
--- a/components/layout_thread/dom_wrapper.rs
+++ b/components/layout_thread/dom_wrapper.rs
@@ -189,7 +189,9 @@ impl<'lr> TShadowRoot for ServoShadowRoot<'lr> {
}
fn host(&self) -> ServoLayoutElement<'lr> {
- ServoLayoutElement::from_layout_js(unsafe { self.shadow_root.get_host_for_layout() })
+ ServoLayoutElement::from_layout_js(unsafe {
+ self.shadow_root.get_host_for_layout().unwrap()
+ })
}
fn style_data<'a>(&self) -> Option<&'a CascadeData>