mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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
|
@ -410,7 +410,7 @@ impl FlexContainer {
|
|||
|
||||
IndependentLayout {
|
||||
fragments,
|
||||
content_block_size,
|
||||
content_block_size: content_block_size.into(),
|
||||
last_inflow_baseline_offset: None,
|
||||
}
|
||||
}
|
||||
|
@ -1111,7 +1111,7 @@ impl<'a> FlexItem<'a> {
|
|||
let hypothetical_cross_size = self
|
||||
.content_box_size
|
||||
.cross
|
||||
.auto_is(|| content_block_size)
|
||||
.auto_is(|| content_block_size.into())
|
||||
.clamp_between_extremums(
|
||||
self.content_min_size.cross,
|
||||
self.content_max_size.cross,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue