mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Finish plumbing intrinsic min/max-content through box construction
This commit is contained in:
parent
da36fcddb0
commit
c056e5b6b0
5 changed files with 80 additions and 39 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue