mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +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
|
@ -861,8 +861,12 @@ impl InlineFragments {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
unsafe impl ::flow::HasBaseFlow for InlineFlow {}
|
||||
|
||||
/// Flows for inline layout.
|
||||
#[derive(Serialize)]
|
||||
#[repr(C)]
|
||||
pub struct InlineFlow {
|
||||
/// Data common to all flows.
|
||||
pub base: BaseFlow,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue