mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix incorrect variable name
This was not the specified value
This commit is contained in:
parent
34e8cda801
commit
77d2c45991
1 changed files with 2 additions and 2 deletions
|
@ -60,9 +60,9 @@ pub(crate) fn outer_inline_content_sizes_and_percentages(
|
|||
) -> (ContentSizes, Percentage) {
|
||||
// FIXME: account for 'min-width', 'max-width', 'box-sizing'
|
||||
|
||||
let specified = style.box_size().inline;
|
||||
let inline_size = style.box_size().inline;
|
||||
// Percentages for 'width' are treated as 'auto'
|
||||
let specified = specified.map(|lp| lp.as_length());
|
||||
let inline_size = 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 => expect(inner_content_sizes).clone(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue