diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-06-15 00:16:49 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-06-20 19:02:39 +0200 |
commit | bea96f60e322dae5262c4024a0b3d65f469b2979 (patch) | |
tree | ac3e4d834647e6278c3b04d621b162f13cdb86ab /components/script_layout_interface/lib.rs | |
parent | 6aaf3e6a0153725c2c458b791cc18c72c1e46115 (diff) | |
download | servo-bea96f60e322dae5262c4024a0b3d65f469b2979.tar.gz servo-bea96f60e322dae5262c4024a0b3d65f469b2979.zip |
Introduce PartialStyleAndLayoutData.
Diffstat (limited to 'components/script_layout_interface/lib.rs')
-rw-r--r-- | components/script_layout_interface/lib.rs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/components/script_layout_interface/lib.rs b/components/script_layout_interface/lib.rs index b2e3b6fd475..7c1a4e28e29 100644 --- a/components/script_layout_interface/lib.rs +++ b/components/script_layout_interface/lib.rs @@ -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)] |