mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
layout: Switch IndependentLayout
to use Au
instead of Length
(#31083)
* use au in layout * fmt * review fix
This commit is contained in:
parent
efa38c67fe
commit
1b847c3166
8 changed files with 52 additions and 21 deletions
|
@ -1949,7 +1949,7 @@ impl IndependentFormattingContext {
|
|||
// https://drafts.csswg.org/css2/visudet.html#block-root-margin
|
||||
let tentative_block_size = box_size
|
||||
.block
|
||||
.auto_is(|| independent_layout.content_block_size);
|
||||
.auto_is(|| independent_layout.content_block_size.into());
|
||||
|
||||
// https://drafts.csswg.org/css2/visudet.html#min-max-heights
|
||||
// In this case “applying the rules above again” with a non-auto block-size
|
||||
|
@ -1974,7 +1974,9 @@ impl IndependentFormattingContext {
|
|||
pbm.border,
|
||||
margin,
|
||||
None,
|
||||
independent_layout.last_inflow_baseline_offset,
|
||||
independent_layout
|
||||
.last_inflow_baseline_offset
|
||||
.map(|t| t.into()),
|
||||
CollapsedBlockMargins::zero(),
|
||||
)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue