mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
use app unit in box_fragement (#32349)
This commit is contained in:
parent
66edef8065
commit
26c585a0c5
20 changed files with 273 additions and 289 deletions
|
@ -433,7 +433,7 @@ impl FlexContainer {
|
|||
},
|
||||
};
|
||||
for (fragment, _) in &mut line.item_fragments {
|
||||
fragment.content_rect.start_corner += &flow_relative_line_position
|
||||
fragment.content_rect.start_corner += &flow_relative_line_position.into()
|
||||
}
|
||||
line.item_fragments
|
||||
});
|
||||
|
@ -965,7 +965,7 @@ impl FlexLine<'_> {
|
|||
item.box_.base_fragment_info(),
|
||||
item.box_.style().clone(),
|
||||
item_result.fragments,
|
||||
content_rect,
|
||||
content_rect.into(),
|
||||
flex_context.sides_to_flow_relative(item.padding),
|
||||
flex_context.sides_to_flow_relative(item.border),
|
||||
margin,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue