diff options
Diffstat (limited to 'components/layout_2020/flexbox/layout.rs')
-rw-r--r-- | components/layout_2020/flexbox/layout.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/layout_2020/flexbox/layout.rs b/components/layout_2020/flexbox/layout.rs index 804dc7b2108..77c1111bb46 100644 --- a/components/layout_2020/flexbox/layout.rs +++ b/components/layout_2020/flexbox/layout.rs @@ -856,9 +856,9 @@ impl FlexLine<'_> { item.box_.style().clone(), item_result.fragments, content_rect, - flex_context.sides_to_flow_relative(item.padding.map(|t| (*t).into())), - flex_context.sides_to_flow_relative(item.border.map(|t| (*t).into())), - margin, + flex_context.sides_to_flow_relative(item.padding), + flex_context.sides_to_flow_relative(item.border), + margin.into(), None, /* clearance */ collapsed_margin, ), |