servo/components/layout_2020/table
Oriol Brufau 19a7e95a6a
Refactor computation of preferred aspect ratios (#34416)
* Refactor computation of preferred aspect ratios

Computing min/max-content sizes required a ContainingBlock in order to
resolve the padding and border when determining the preferred aspect
ratio. However, all callers already knew the padding and border, so they
can compute the ratio themselves, and pass it directly instead of
the ContainingBlock.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>

* Put preferred aspect ratio into ConstraintSpace

Signed-off-by: Oriol Brufau <obrufau@igalia.com>

---------

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2024-11-29 11:40:52 +00:00
..
construct.rs Protect against arithmetic underflow in TableBuilder::current_y() (#34247) 2024-11-14 16:03:39 +00:00
layout.rs Refactor computation of preferred aspect ratios (#34416) 2024-11-29 11:40:52 +00:00
mod.rs fonts: Add support for generic font families and font size configuration (#32673) 2024-07-08 17:17:48 +00:00