mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35: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
|
@ -439,6 +439,7 @@ impl HoistedAbsolutelyPositionedBox {
|
|||
let used_size = replaced.contents.used_size_as_if_inline_element(
|
||||
&containing_block.into(),
|
||||
&replaced.style,
|
||||
None,
|
||||
&pbm,
|
||||
);
|
||||
Vec2 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue