diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2019-12-03 02:19:48 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2019-12-03 15:11:35 +0100 |
commit | c056e5b6b0dcd3a0226c02b6ffbe544a085da567 (patch) | |
tree | 27a9a434a4308efb1bddff489691f6c2cbc81fa5 /components/layout_2020/sizing.rs | |
parent | da36fcddb05da8a4370c006f937ab43682d057c0 (diff) | |
download | servo-c056e5b6b0dcd3a0226c02b6ffbe544a085da567.tar.gz servo-c056e5b6b0dcd3a0226c02b6ffbe544a085da567.zip |
Finish plumbing intrinsic min/max-content through box construction
Diffstat (limited to 'components/layout_2020/sizing.rs')
-rw-r--r-- | components/layout_2020/sizing.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/components/layout_2020/sizing.rs b/components/layout_2020/sizing.rs index 998c2e2b419..a58602d23fd 100644 --- a/components/layout_2020/sizing.rs +++ b/components/layout_2020/sizing.rs @@ -65,7 +65,10 @@ pub(crate) fn outer_inline_content_sizes_and_percentages( let specified = specified.map(|lp| lp.as_length()); // The (inner) min/max-content are only used for 'auto' let mut outer = match specified.non_auto().flatten() { - None => inner_content_sizes.as_ref().expect("Accessing content size that was not requested").clone(), + None => inner_content_sizes + .as_ref() + .expect("Accessing content size that was not requested") + .clone(), Some(length) => ContentSizes { min_content: length, max_content: length, |