diff options
author | atbrakhi <atbrakhi@igalia.com> | 2024-01-15 15:31:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-15 14:31:21 +0000 |
commit | 1b847c3166d17a957f5ab5e4aae3a3fcb10d875c (patch) | |
tree | 6ff386ce681e3be3406eace72af574305dcd4b14 /components/layout_2020/flexbox/layout.rs | |
parent | efa38c67fe6bdec751739bb3a0a6d159f2b695c8 (diff) | |
download | servo-1b847c3166d17a957f5ab5e4aae3a3fcb10d875c.tar.gz servo-1b847c3166d17a957f5ab5e4aae3a3fcb10d875c.zip |
layout: Switch `IndependentLayout` to use `Au` instead of `Length` (#31083)
* use au in layout
* fmt
* review fix
Diffstat (limited to 'components/layout_2020/flexbox/layout.rs')
-rw-r--r-- | components/layout_2020/flexbox/layout.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout_2020/flexbox/layout.rs b/components/layout_2020/flexbox/layout.rs index 05c8b95ad97..55f792e3b07 100644 --- a/components/layout_2020/flexbox/layout.rs +++ b/components/layout_2020/flexbox/layout.rs @@ -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, |