mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +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
|
@ -24,8 +24,12 @@ use style::logical_geometry::LogicalSize;
|
|||
use style::properties::ComputedValues;
|
||||
use style::servo::restyle_damage::RESOLVE_GENERATED_CONTENT;
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
unsafe impl ::flow::HasBaseFlow for ListItemFlow {}
|
||||
|
||||
/// A block with the CSS `display` property equal to `list-item`.
|
||||
#[derive(Debug)]
|
||||
#[repr(C)]
|
||||
pub struct ListItemFlow {
|
||||
/// Data common to all block flows.
|
||||
pub block_flow: BlockFlow,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue