mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Moar detach shadow improvements
This commit is contained in:
parent
590ac0b937
commit
a3d0d95b61
3 changed files with 44 additions and 54 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue