Don't generate rare_data_for_layout methods anymore

It is only used twice.
This commit is contained in:
Anthony Ramine 2020-03-31 21:54:02 +02:00
parent dd750c6f86
commit 414d477b54
3 changed files with 6 additions and 9 deletions

View file

@ -1400,8 +1400,9 @@ impl<'dom> LayoutNodeHelpers<'dom> for LayoutDom<'dom, Node> {
#[inline]
#[allow(unsafe_code)]
unsafe fn containing_shadow_root_for_layout(self) -> Option<LayoutDom<'dom, ShadowRoot>> {
(*self.unsafe_get())
.rare_data_for_layout()
self.unsafe_get()
.rare_data
.borrow_for_layout()
.as_ref()?
.containing_shadow_root
.as_ref()