mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Move OpaqueStyleAndLayoutData to script_layout_interface.
This commit is contained in:
parent
5cab8ff8d2
commit
6aaf3e6a01
11 changed files with 35 additions and 16 deletions
|
@ -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 {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue