Clean up LayoutShadowRootHelpers::get_style_data_for_layout

Parameter E is unused and the result should be bound by 'dom.
This commit is contained in:
Anthony Ramine 2020-03-29 19:39:49 +02:00
parent 206157dd74
commit 86296b84ff
3 changed files with 4 additions and 18 deletions

View file

@ -184,12 +184,7 @@ impl<'lr> TShadowRoot for ServoShadowRoot<'lr> {
where
Self: 'a,
{
Some(unsafe {
&self
.shadow_root
.get_style_data_for_layout::<ServoLayoutElement>()
.data
})
Some(unsafe { &self.shadow_root.get_style_data_for_layout().data })
}
}