Introduce PartialStyleAndLayoutData.

This commit is contained in:
Ms2ger 2016-06-15 00:16:49 +01:00
parent 6aaf3e6a01
commit bea96f60e3
3 changed files with 14 additions and 5 deletions

View file

@ -24,12 +24,20 @@ extern crate style;
pub mod restyle_damage;
use core::nonzero::NonZero;
use restyle_damage::RestyleDamage;
use std::cell::RefCell;
use style::servo::PrivateStyleData;
pub struct PartialStyleAndLayoutData {
pub style_data: PrivateStyleData,
pub restyle_damage: RestyleDamage,
}
#[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 ()>
pub ptr: NonZero<*mut RefCell<PartialStyleAndLayoutData>>
}
#[allow(unsafe_code)]