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:
Anthony Ramine 2020-04-01 11:25:39 +02:00
parent ebd2892158
commit 295f120425
3 changed files with 8 additions and 5 deletions

View file

@ -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())
}
}