Final nits; fix custom elements rare data usage; s/owner_s_r/containing_s_r

Clarify special case for containing_shadow_root and add it to layout
accessor
This commit is contained in:
Fernando Jiménez Moreno 2019-04-26 09:44:21 +02:00
parent 9b2eb77530
commit 68bee1c771
6 changed files with 95 additions and 89 deletions

View file

@ -711,7 +711,7 @@ impl<'le> TElement for ServoLayoutElement<'le> {
unsafe {
self.element
.upcast()
.owner_shadow_root_for_layout()
.containing_shadow_root_for_layout()
.map(ServoShadowRoot::from_layout_js)
}
}