servo/components/layout_2020/flow
Oriol Brufau b28260aa13
Fix inline content sizes of intrinsic element with indefinite block size (#34152)
To compute the min-content and max-content inline sizes of a replaced
element, we were only using the aspect ratio to transfer definite block
sizes resulting from clamping the preferred block size between the min
and max block sizes.

However, if the preferred block size is indefinite, then we weren't
transfering the min and max through the aspect ratio.

This patch adds a `SizeConstraint` enum that can represent these cases,
and a `ConstraintSpace` struct analogous to `IndefiniteContainingBlock`
but with no inline size, and a `SizeConstraint` block size.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2024-11-11 11:38:19 +00:00
..
inline Fix inline content sizes of intrinsic element with indefinite block size (#34152) 2024-11-11 11:38:19 +00:00
construct.rs layout: Add initial support for bidirectional text (BiDi) (#33148) 2024-08-21 14:28:54 +00:00
float.rs Unify logic for laying out floats and atomic inlines (#33802) 2024-10-11 18:26:00 +00:00
mod.rs Fix inline content sizes of intrinsic element with indefinite block size (#34152) 2024-11-11 11:38:19 +00:00
root.rs Replace .map_or(false with Option::is_some_and (#33468) 2024-09-16 10:03:52 +00:00