From 77d2c45991570b5fd3432db1807e76e838900b0d Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Wed, 4 Dec 2019 13:37:20 +0100 Subject: [PATCH] Fix incorrect variable name This was not the specified value --- components/layout_2020/sizing.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/layout_2020/sizing.rs b/components/layout_2020/sizing.rs index 01e28c7a064..65917d9b404 100644 --- a/components/layout_2020/sizing.rs +++ b/components/layout_2020/sizing.rs @@ -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(),