diff options
author | Oriol Brufau <obrufau@igalia.com> | 2024-11-28 13:57:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-28 12:57:38 +0000 |
commit | a37ccc3e64c92e8ba10a3cdc48ebd7f031bb7298 (patch) | |
tree | e66e22153a3ed1e59019c0e50806265402dbf4e3 /components/layout_2020/positioned.rs | |
parent | 895b8d30eac41afbdbd20efd65c5a6e58ae3f43d (diff) | |
download | servo-a37ccc3e64c92e8ba10a3cdc48ebd7f031bb7298.tar.gz servo-a37ccc3e64c92e8ba10a3cdc48ebd7f031bb7298.zip |
Use natural ratio for `object-fit` (#34413)
We were using the preferred aspect ratio provided by the `aspect-ratio`
property instead of the natural aspect ratio. However, the preferred
aspect ratio should only be used to size the replaced element. To paint
the replaced contents into that element we need the natural ratio.
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Diffstat (limited to 'components/layout_2020/positioned.rs')
-rw-r--r-- | components/layout_2020/positioned.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/components/layout_2020/positioned.rs b/components/layout_2020/positioned.rs index 2e4aebaf4c4..ed391a394ed 100644 --- a/components/layout_2020/positioned.rs +++ b/components/layout_2020/positioned.rs @@ -567,7 +567,6 @@ impl HoistedAbsolutelyPositionedBox { content_size = computed_size.map(|size| size.to_numeric().unwrap()); fragments = replaced.contents.make_fragments( &style, - containing_block, content_size.to_physical_size(containing_block_writing_mode), ); }, |