diff options
author | Anthony Ramine <nox@nox.paris> | 2020-03-31 21:54:02 +0200 |
---|---|---|
committer | Anthony Ramine <nox@nox.paris> | 2020-03-31 21:54:02 +0200 |
commit | 414d477b5482e44b47ab8034b158b2ad2e92bf27 (patch) | |
tree | c69df4f65941db89819e6ce61c4015f284fb065f /components/script/dom/element.rs | |
parent | dd750c6f8630dc5cdf27896fe420da9d441459c1 (diff) | |
download | servo-414d477b5482e44b47ab8034b158b2ad2e92bf27.tar.gz servo-414d477b5482e44b47ab8034b158b2ad2e92bf27.zip |
Don't generate rare_data_for_layout methods anymore
It is only used twice.
Diffstat (limited to 'components/script/dom/element.rs')
-rw-r--r-- | components/script/dom/element.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/element.rs b/components/script/dom/element.rs index 48ef41cbff3..cca6ae7edbd 100644 --- a/components/script/dom/element.rs +++ b/components/script/dom/element.rs @@ -1039,8 +1039,9 @@ impl<'dom> LayoutElementHelpers<'dom> for LayoutDom<'dom, Element> { #[inline] #[allow(unsafe_code)] unsafe fn get_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()? .shadow_root .as_ref() |