diff options
Diffstat (limited to 'components/layout/block.rs')
-rw-r--r-- | components/layout/block.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/layout/block.rs b/components/layout/block.rs index c7f675293d3..bffcbef0e67 100644 --- a/components/layout/block.rs +++ b/components/layout/block.rs @@ -492,8 +492,12 @@ pub enum FormattingContextType { Other, } +#[allow(unsafe_code)] +unsafe impl ::flow::HasBaseFlow for BlockFlow {} + // A block formatting context. #[derive(Serialize)] +#[repr(C)] pub struct BlockFlow { /// Data common to all flows. pub base: BaseFlow, |