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:
Pu Xingyu 2023-05-27 09:03:40 +08:00
parent 867326c46a
commit 1dbd74f389
5 changed files with 6 additions and 2 deletions

View file

@ -573,6 +573,7 @@ fn layout_atomic(
let size = replaced.contents.used_size_as_if_inline_element(
ifc.containing_block,
&replaced.style,
None,
&pbm,
);
let fragments = replaced