mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Make LayoutShadowRootHelpers::get_style_data_for_layout return a &CascadeData
That return type is Sync, which thus means that the method can be safe.
This commit is contained in:
parent
ebd2892158
commit
295f120425
3 changed files with 8 additions and 5 deletions
|
@ -184,7 +184,7 @@ impl<'lr> TShadowRoot for ServoShadowRoot<'lr> {
|
|||
where
|
||||
Self: 'a,
|
||||
{
|
||||
Some(unsafe { &self.shadow_root.get_style_data_for_layout().data })
|
||||
Some(&self.shadow_root.get_style_data_for_layout())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue