aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_layout_interface/lib.rs
diff options
context:
space:
mode:
authorBobby Holley <bobbyholley@gmail.com>2016-09-29 17:09:06 -0700
committerBobby Holley <bobbyholley@gmail.com>2016-10-02 19:19:52 -0700
commit687e1f701c5b466ed908b2f05243e0ea299d3c9b (patch)
tree3dab40fe7d8c478e212ab38329bcd75d003faedf /components/script_layout_interface/lib.rs
parent5bcc4192bf2c0723444ee62b8fbbbc2084d53175 (diff)
downloadservo-687e1f701c5b466ed908b2f05243e0ea299d3c9b.tar.gz
servo-687e1f701c5b466ed908b2f05243e0ea299d3c9b.zip
Rename PrivateStyleData to PersistentStyleData and use AtomicRefCell instead of RefCell as a container.
This allows us to eliminate the unsafe borrows. \o/ MozReview-Commit-ID: 29hpGaWUFQz
Diffstat (limited to 'components/script_layout_interface/lib.rs')
-rw-r--r--components/script_layout_interface/lib.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script_layout_interface/lib.rs b/components/script_layout_interface/lib.rs
index d3554422dd7..cad2e012c7c 100644
--- a/components/script_layout_interface/lib.rs
+++ b/components/script_layout_interface/lib.rs
@@ -52,11 +52,11 @@ use core::nonzero::NonZero;
use ipc_channel::ipc::IpcSender;
use libc::c_void;
use restyle_damage::RestyleDamage;
-use style::data::PrivateStyleData;
-use style::refcell::RefCell;
+use style::atomic_refcell::AtomicRefCell;
+use style::data::PersistentStyleData;
-pub struct PartialStyleAndLayoutData {
- pub style_data: PrivateStyleData,
+pub struct PartialPersistentLayoutData {
+ pub style_data: PersistentStyleData,
pub restyle_damage: RestyleDamage,
}
@@ -64,7 +64,7 @@ pub struct PartialStyleAndLayoutData {
pub struct OpaqueStyleAndLayoutData {
#[ignore_heap_size_of = "TODO(#6910) Box value that should be counted but \
the type lives in layout"]
- pub ptr: NonZero<*mut RefCell<PartialStyleAndLayoutData>>
+ pub ptr: NonZero<*mut AtomicRefCell<PartialPersistentLayoutData>>
}
#[allow(unsafe_code)]