aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread_2020/dom_wrapper.rs
diff options
context:
space:
mode:
authorAnthony Ramine <nox@nox.paris>2020-04-01 11:25:39 +0200
committerAnthony Ramine <nox@nox.paris>2020-04-01 11:40:55 +0200
commit295f1204257a804a866e48efcc95c226fd7ea3ed (patch)
treeec8f9659977c95d8dc989b4db287b7843be1cea8 /components/layout_thread_2020/dom_wrapper.rs
parentebd289215852c0fe65ab9633d1bb83243ea6221b (diff)
downloadservo-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.rs2
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())
}
}