Implement TShadowRoot::style_data

This commit is contained in:
Fernando Jiménez Moreno 2019-02-11 10:20:42 +01:00
parent 23b92d54d4
commit e9f0e76d3c
3 changed files with 32 additions and 3 deletions

View file

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