mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue