aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_layout_interface/lib.rs
diff options
context:
space:
mode:
authorMs2ger <Ms2ger@gmail.com>2016-06-15 00:00:28 +0100
committerMs2ger <Ms2ger@gmail.com>2016-06-20 19:02:38 +0200
commit6aaf3e6a0153725c2c458b791cc18c72c1e46115 (patch)
tree1aeffc3f35d17256cf10590f30933b79c9bff879 /components/script_layout_interface/lib.rs
parent5cab8ff8d243038f498922c5960e1161bd8aafd7 (diff)
downloadservo-6aaf3e6a0153725c2c458b791cc18c72c1e46115.tar.gz
servo-6aaf3e6a0153725c2c458b791cc18c72c1e46115.zip
Move OpaqueStyleAndLayoutData to script_layout_interface.
Diffstat (limited to 'components/script_layout_interface/lib.rs')
-rw-r--r--components/script_layout_interface/lib.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/components/script_layout_interface/lib.rs b/components/script_layout_interface/lib.rs
index 1aed95b6210..b2e3b6fd475 100644
--- a/components/script_layout_interface/lib.rs
+++ b/components/script_layout_interface/lib.rs
@@ -7,12 +7,30 @@
//! to depend on script.
#![deny(unsafe_code)]
+#![feature(custom_attribute)]
+#![feature(custom_derive)]
+#![feature(nonzero)]
#![feature(plugin)]
+#![plugin(heapsize_plugin)]
#![plugin(plugins)]
#[allow(unused_extern_crates)]
#[macro_use]
extern crate bitflags;
+extern crate core;
+extern crate heapsize;
extern crate style;
pub mod restyle_damage;
+
+use core::nonzero::NonZero;
+
+#[derive(Copy, Clone, HeapSizeOf)]
+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 ()>
+}
+
+#[allow(unsafe_code)]
+unsafe impl Send for OpaqueStyleAndLayoutData {}