mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Make LayoutShadowRootHelpers::get_host_for_layout be safe
This commit is contained in:
parent
68d5cfffd5
commit
f712b0bcf8
3 changed files with 10 additions and 8 deletions
|
@ -177,7 +177,7 @@ 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(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