mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Fix unsafe casting between PersistentLayoutData and PartialPersistentLayoutData
This commit is contained in:
parent
f579405510
commit
273bcfbd8e
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@ use construct::ConstructionResult;
|
|||
use script_layout_interface::PartialPersistentLayoutData;
|
||||
|
||||
/// Data that layout associates with a node.
|
||||
#[repr(C)]
|
||||
pub struct PersistentLayoutData {
|
||||
/// Data accessed by script_layout_interface. This must be first to allow
|
||||
/// casting between PersistentLayoutData and PartialPersistentLayoutData.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue