aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/flex.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/flex.rs')
-rw-r--r--components/layout/flex.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/layout/flex.rs b/components/layout/flex.rs
index 063add9e1d5..6d969ef8643 100644
--- a/components/layout/flex.rs
+++ b/components/layout/flex.rs
@@ -328,8 +328,12 @@ impl FlexLine {
}
}
+#[allow(unsafe_code)]
+unsafe impl ::flow::HasBaseFlow for FlexFlow {}
+
/// A block with the CSS `display` property equal to `flex`.
#[derive(Debug, Serialize)]
+#[repr(C)]
pub struct FlexFlow {
/// Data common to all block flows.
block_flow: BlockFlow,