mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
layout: Assert that hypothetical_cross_size
is already correct (#35816)
There doesn't seem to be a need to recompute it. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
bf5afe166e
commit
2d28eb8f39
1 changed files with 8 additions and 3 deletions
|
@ -2000,7 +2000,10 @@ impl FlexItem<'_> {
|
||||||
size,
|
size,
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
non_stretch_layout_result.hypothetical_cross_size = hypothetical_cross_size;
|
assert_eq!(
|
||||||
|
non_stretch_layout_result.hypothetical_cross_size,
|
||||||
|
hypothetical_cross_size
|
||||||
|
);
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2055,9 +2058,11 @@ impl FlexItem<'_> {
|
||||||
if non_stretch_layout_result
|
if non_stretch_layout_result
|
||||||
.compatible_with_containing_block_size(&item_as_containing_block)
|
.compatible_with_containing_block_size(&item_as_containing_block)
|
||||||
{
|
{
|
||||||
non_stretch_layout_result.hypothetical_cross_size =
|
assert_eq!(
|
||||||
|
non_stretch_layout_result.hypothetical_cross_size,
|
||||||
calculate_hypothetical_cross_size(
|
calculate_hypothetical_cross_size(
|
||||||
non_stretch_layout_result.content_size.inline,
|
non_stretch_layout_result.content_size.inline,
|
||||||
|
)
|
||||||
);
|
);
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue