aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/flow/float.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2024-09-18 08:20:28 +0200
committerGitHub <noreply@github.com>2024-09-18 06:20:28 +0000
commitbd632fc8144e347db7452c8013137e6a16e30bd1 (patch)
treeaa85f11dc4b72285bf0435558332cd90bc2fdf13 /components/layout_2020/flow/float.rs
parent632d83270498f6cb2e9d284503d86607f250b80e (diff)
downloadservo-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.rs1
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),
)
},