aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/paintrenderingcontext2d.rs
diff options
context:
space:
mode:
authorOriol Brufau <obrufau@igalia.com>2024-11-11 12:38:19 +0100
committerGitHub <noreply@github.com>2024-11-11 11:38:19 +0000
commitb28260aa130ce36230bb01686495845b5523ebc1 (patch)
treee6ec8b8efb3f1ecc88791660c5996201ead295b7 /components/script/dom/paintrenderingcontext2d.rs
parent72971bd2716a7e574a4c6c3395c7a710652427b4 (diff)
downloadservo-b28260aa130ce36230bb01686495845b5523ebc1.tar.gz
servo-b28260aa130ce36230bb01686495845b5523ebc1.zip
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>
Diffstat (limited to 'components/script/dom/paintrenderingcontext2d.rs')
0 files changed, 0 insertions, 0 deletions