aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/fragment.rs
diff options
context:
space:
mode:
authorOriol Brufau <obrufau@igalia.com>2023-08-14 23:00:08 +0200
committerMartin Robinson <mrobinson@igalia.com>2023-08-16 17:46:41 +0200
commita7699d9034ca7f1019dd5a568e0006e4a996c2bf (patch)
treecf07ea710a61115eaec0c96aa8942855591caee9 /components/layout/fragment.rs
parentf48b95e2e3879d38314ab84999f0c17055a660d5 (diff)
downloadservo-a7699d9034ca7f1019dd5a568e0006e4a996c2bf.tar.gz
servo-a7699d9034ca7f1019dd5a568e0006e4a996c2bf.zip
Further changes required by Servo
Diffstat (limited to 'components/layout/fragment.rs')
-rw-r--r--components/layout/fragment.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs
index 5cf56b6cbdf..7f36e110499 100644
--- a/components/layout/fragment.rs
+++ b/components/layout/fragment.rs
@@ -158,6 +158,11 @@ pub struct Fragment {
pub established_reference_frame: Option<ClipScrollNodeIndex>,
}
+#[cfg(debug_assertions)]
+size_of_test!(Fragment, 176);
+#[cfg(not(debug_assertions))]
+size_of_test!(Fragment, 152);
+
impl Serialize for Fragment {
fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error> {
let mut serializer = serializer.serialize_struct("fragment", 3)?;
@@ -212,6 +217,8 @@ pub enum SpecificFragmentInfo {
TruncatedFragment(Box<TruncatedFragmentInfo>),
}
+size_of_test!(SpecificFragmentInfo, 24);
+
impl SpecificFragmentInfo {
fn restyle_damage(&self) -> RestyleDamage {
let flow = match *self {