Move OpaqueStyleAndLayoutData to script_layout_interface.

This commit is contained in:
Ms2ger 2016-06-15 00:00:28 +01:00
parent 5cab8ff8d2
commit 6aaf3e6a01
11 changed files with 35 additions and 16 deletions

View file

@ -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 {}