mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
layout_2020: Add an optional box size parameter to ReplacedContent::used_size_as_if_inline_element
This allow us to specify the used size when calculating size of replaced content.
This commit is contained in:
parent
867326c46a
commit
1dbd74f389
5 changed files with 6 additions and 2 deletions
|
@ -1006,6 +1006,7 @@ impl<'a> FlexItem<'a> {
|
|||
let size = replaced.contents.used_size_as_if_inline_element(
|
||||
flex_context.containing_block,
|
||||
&replaced.style,
|
||||
None,
|
||||
&pbm,
|
||||
);
|
||||
let cross_size = flex_context.vec2_to_flex_relative(size.clone()).cross;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue