diff options
Diffstat (limited to 'components/script_layout_interface/lib.rs')
-rw-r--r-- | components/script_layout_interface/lib.rs | 18 |
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 {} |