mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Remove a layer of Option on LayoutData
The individual fields are also Options, and LayoutData::new() is a fine default value.
This commit is contained in:
parent
c22547a4ef
commit
51c639c380
4 changed files with 10 additions and 49 deletions
|
@ -322,7 +322,6 @@ impl LayoutTask {
|
|||
let node: AbstractNode<LayoutView> = unsafe {
|
||||
transmute(display_list.get().list[i].base().extra)
|
||||
};
|
||||
assert!(node.has_layout_data(), "Node has display item but no layout data");
|
||||
|
||||
do node.write_layout_data |layout_data| {
|
||||
layout_data.boxes.display_list = Some(display_list.clone());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue