mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Introduce an unsafe HasBaseFlow trait for base()/base_mut() casts.
This commit is contained in:
parent
4c5d6fd834
commit
b505c9e948
13 changed files with 63 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue