diff options
author | Martin Robinson <mrobinson@igalia.com> | 2024-09-18 08:20:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-18 06:20:28 +0000 |
commit | bd632fc8144e347db7452c8013137e6a16e30bd1 (patch) | |
tree | aa85f11dc4b72285bf0435558332cd90bc2fdf13 /components/layout_2020/flow/mod.rs | |
parent | 632d83270498f6cb2e9d284503d86607f250b80e (diff) | |
download | servo-bd632fc8144e347db7452c8013137e6a16e30bd1.tar.gz servo-bd632fc8144e347db7452c8013137e6a16e30bd1.zip |
layout: Add support for `object-fit` and `object-position` (#33479)
This also makes a couple small improvements:
- Rename `IntrinsicSizes` to `NaturalSizes` which reflects more
modern spec language.
- Move the conversion of Stylo's `ImageRendering` to WebRender's
version to a `ToWebRender` trait implementation.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Oriol Brufau <obrufau@igalia.com>
Diffstat (limited to 'components/layout_2020/flow/mod.rs')
-rw-r--r-- | components/layout_2020/flow/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout_2020/flow/mod.rs b/components/layout_2020/flow/mod.rs index 4dc42ba7fbe..fdd40559d2c 100644 --- a/components/layout_2020/flow/mod.rs +++ b/components/layout_2020/flow/mod.rs @@ -1307,7 +1307,7 @@ fn layout_in_flow_replaced_block_level( let containing_block_writing_mode = containing_block.style.writing_mode; let physical_content_size = content_size.to_physical_size(containing_block_writing_mode); - let fragments = replaced.make_fragments(style, physical_content_size); + let fragments = replaced.make_fragments(style, containing_block, physical_content_size); let clearance; if let Some(ref mut sequential_layout_state) = sequential_layout_state { |