mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +00:00
Introduce PartialStyleAndLayoutData.
This commit is contained in:
parent
6aaf3e6a01
commit
bea96f60e3
3 changed files with 14 additions and 5 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue