aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/query.rs
diff options
context:
space:
mode:
authorAnthony Ramine <nox@nox.paris>2020-04-03 18:54:11 +0200
committerAnthony Ramine <nox@nox.paris>2020-04-04 13:10:19 +0200
commit185a402d9cc41d3e680b99564f5fc8b519ecf129 (patch)
tree14869f8e2feae209fcf75026fb079021986c13f9 /components/layout/query.rs
parent516e8e0aa600cdef34e506e0ed7180d12dd9ac7d (diff)
downloadservo-185a402d9cc41d3e680b99564f5fc8b519ecf129.tar.gz
servo-185a402d9cc41d3e680b99564f5fc8b519ecf129.zip
Make DOM own the style and layout data, in an UnsafeCell
The previous Cell was a lie.
Diffstat (limited to 'components/layout/query.rs')
-rw-r--r--components/layout/query.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout/query.rs b/components/layout/query.rs
index 7472a8a706d..b1e33a1dedf 100644
--- a/components/layout/query.rs
+++ b/components/layout/query.rs
@@ -1036,7 +1036,7 @@ fn inner_text_collection_steps<'dom>(
_ => child,
};
- let element_data = unsafe {
+ let element_data = {
&node.get_style_and_layout_data().as_ref().map(|opaque| {
&opaque
.downcast_ref::<StyleAndLayoutData>()