diff options
Diffstat (limited to 'components/layout/util.rs')
-rw-r--r-- | components/layout/util.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/components/layout/util.rs b/components/layout/util.rs index 9bb1a3ffa1f..c7ddbc0c596 100644 --- a/components/layout/util.rs +++ b/components/layout/util.rs @@ -42,6 +42,9 @@ pub struct PrivateLayoutData { /// Information needed during parallel traversals. pub parallel: DomParallelInfo, + + /// Various flags. + pub flags: LayoutDataFlags, } impl PrivateLayoutData { @@ -55,10 +58,18 @@ impl PrivateLayoutData { before_flow_construction_result: NoConstructionResult, after_flow_construction_result: NoConstructionResult, parallel: DomParallelInfo::new(), + flags: LayoutDataFlags::empty(), } } } +bitflags! { + flags LayoutDataFlags: u8 { + #[doc="Whether a flow has been newly constructed."] + static HasNewlyConstructedFlow = 0x01 + } +} + pub struct LayoutDataWrapper { pub chan: Option<LayoutChan>, pub shared_data: SharedLayoutData, |