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/float.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/float.rs')
-rw-r--r-- | components/layout_2020/flow/float.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/layout_2020/flow/float.rs b/components/layout_2020/flow/float.rs index 6a3aec1b77f..73e12ac2298 100644 --- a/components/layout_2020/flow/float.rs +++ b/components/layout_2020/flow/float.rs @@ -992,6 +992,7 @@ impl FloatBox { ); children = replaced.contents.make_fragments( &replaced.style, + containing_block, content_size.to_physical_size(containing_block.style.writing_mode), ) }, |