diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2017-05-07 16:42:46 +0200 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2017-05-08 12:46:03 +0200 |
commit | 02e1901bc15812dfc74b4979e0951bf7593e7fc9 (patch) | |
tree | 7758970f50502206f1d264201069bbaea2eb28fd /components/script/layout_wrapper.rs | |
parent | bd2cd40c5029f3124f2ed492b4fab7dc8f9101c8 (diff) | |
download | servo-02e1901bc15812dfc74b4979e0951bf7593e7fc9.tar.gz servo-02e1901bc15812dfc74b4979e0951bf7593e7fc9.zip |
Upgrade to rustc 1.19.0-nightly (ced823e26 2017-05-07)
Diffstat (limited to 'components/script/layout_wrapper.rs')
-rw-r--r-- | components/script/layout_wrapper.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/layout_wrapper.rs b/components/script/layout_wrapper.rs index 86059a2d7c6..46e5921e3ac 100644 --- a/components/script/layout_wrapper.rs +++ b/components/script/layout_wrapper.rs @@ -442,7 +442,7 @@ impl<'le> TElement for ServoLayoutElement<'le> { fn get_data(&self) -> Option<&AtomicRefCell<ElementData>> { unsafe { self.get_style_and_layout_data().map(|d| { - let ppld: &AtomicRefCell<PartialPersistentLayoutData> = &**d.ptr; + let ppld: &AtomicRefCell<PartialPersistentLayoutData> = &*d.ptr.get(); let psd: &AtomicRefCell<ElementData> = transmute(ppld); psd }) @@ -505,7 +505,7 @@ impl<'le> ServoLayoutElement<'le> { fn get_partial_layout_data(&self) -> Option<&AtomicRefCell<PartialPersistentLayoutData>> { unsafe { - self.get_style_and_layout_data().map(|d| &**d.ptr) + self.get_style_and_layout_data().map(|d| &*d.ptr.get()) } } |