aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/flow/inline.rs
diff options
context:
space:
mode:
authoratbrakhi <atbrakhi@igalia.com>2024-01-15 15:31:21 +0100
committerGitHub <noreply@github.com>2024-01-15 14:31:21 +0000
commit1b847c3166d17a957f5ab5e4aae3a3fcb10d875c (patch)
tree6ff386ce681e3be3406eace72af574305dcd4b14 /components/layout_2020/flow/inline.rs
parentefa38c67fe6bdec751739bb3a0a6d159f2b695c8 (diff)
downloadservo-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/flow/inline.rs')
-rw-r--r--components/layout_2020/flow/inline.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/layout_2020/flow/inline.rs b/components/layout_2020/flow/inline.rs
index e980983552a..c5b9bbd6c5c 100644
--- a/components/layout_2020/flow/inline.rs
+++ b/components/layout_2020/flow/inline.rs
@@ -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(),
)
},