diff options
author | Anthony Ramine <nox@nox.paris> | 2020-04-01 11:25:39 +0200 |
---|---|---|
committer | Anthony Ramine <nox@nox.paris> | 2020-04-01 11:40:55 +0200 |
commit | 295f1204257a804a866e48efcc95c226fd7ea3ed (patch) | |
tree | ec8f9659977c95d8dc989b4db287b7843be1cea8 /components/layout_thread_2020/dom_wrapper.rs | |
parent | ebd289215852c0fe65ab9633d1bb83243ea6221b (diff) | |
download | servo-295f1204257a804a866e48efcc95c226fd7ea3ed.tar.gz servo-295f1204257a804a866e48efcc95c226fd7ea3ed.zip |
Make LayoutShadowRootHelpers::get_style_data_for_layout return a &CascadeData
That return type is Sync, which thus means that the method can be safe.
Diffstat (limited to 'components/layout_thread_2020/dom_wrapper.rs')
-rw-r--r-- | components/layout_thread_2020/dom_wrapper.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout_thread_2020/dom_wrapper.rs b/components/layout_thread_2020/dom_wrapper.rs index 3a1128cc46e..5a722cd82b8 100644 --- a/components/layout_thread_2020/dom_wrapper.rs +++ b/components/layout_thread_2020/dom_wrapper.rs @@ -184,7 +184,7 @@ impl<'lr> TShadowRoot for ServoShadowRoot<'lr> { where Self: 'a, { - Some(unsafe { &self.shadow_root.get_style_data_for_layout().data }) + Some(&self.shadow_root.get_style_data_for_layout()) } } |