Moar detach shadow improvements

This commit is contained in:
Fernando Jiménez Moreno 2019-07-03 13:57:22 +02:00
parent 590ac0b937
commit a3d0d95b61
3 changed files with 44 additions and 54 deletions

View file

@ -189,9 +189,7 @@ impl<'lr> TShadowRoot for ServoShadowRoot<'lr> {
}
fn host(&self) -> ServoLayoutElement<'lr> {
ServoLayoutElement::from_layout_js(unsafe {
self.shadow_root.get_host_for_layout().unwrap()
})
ServoLayoutElement::from_layout_js(unsafe { self.shadow_root.get_host_for_layout() })
}
fn style_data<'a>(&self) -> Option<&'a CascadeData>