servo/components/layout_2020
Oriol Brufau f66cd172d6
layout: Generalize ContainingBlock's block size to a SizeConstraint (#34946)
It used to be an `AuOrAuto`, turning it into a `SizeConstraint` allows
passing the information about the min and max constraints when the
containing block doesn't have a definite block size.

This will be useful for table layout.

Note that in most cases we were already constructing the containing
block from a `SizeConstraint`, but we were calling `to_auto_or()` to
turn it into an `AuOrAuto`.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2025-01-13 10:25:33 +00:00
..
display_list layout: Make Fragment hold ArcRefCell inside (#34923) 2025-01-13 09:59:59 +00:00
flexbox layout: Generalize ContainingBlock's block size to a SizeConstraint (#34946) 2025-01-13 10:25:33 +00:00
flow layout: Generalize ContainingBlock's block size to a SizeConstraint (#34946) 2025-01-13 10:25:33 +00:00
fragment_tree layout: Make Fragment hold ArcRefCell inside (#34923) 2025-01-13 09:59:59 +00:00
table layout: Generalize ContainingBlock's block size to a SizeConstraint (#34946) 2025-01-13 10:25:33 +00:00
taffy layout: Generalize ContainingBlock's block size to a SizeConstraint (#34946) 2025-01-13 10:25:33 +00:00
tests Update deprecated use of PanicInfo to PanicHookInfo (#34659) 2024-12-17 03:50:26 +00:00
Cargo.toml layout: Fix CSS attr() function case sensitivity matching (#34574) 2024-12-13 17:29:52 +00:00
cell.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
construct_modern.rs Elide lifetimes where possible after rustup (#34824) 2025-01-03 18:54:44 +00:00
context.rs Elide lifetimes where possible after rustup (#34824) 2025-01-03 18:54:44 +00:00
dom.rs layout: Clean up inline layout data types a bit (#34563) 2024-12-11 14:40:34 +00:00
dom_traversal.rs layout: Lay out Shadow DOM elements (#34701) 2024-12-19 19:24:42 +00:00
formatting_contexts.rs layout: grid-template getComputedStyle cleanup (#34926) 2025-01-10 09:04:49 +00:00
geom.rs layout: Generalize ContainingBlock's block size to a SizeConstraint (#34946) 2025-01-13 10:25:33 +00:00
layout_box_base.rs Distinguish cached inline_content_sizes() from uncached ones (#34595) 2024-12-12 15:39:51 +00:00
layout_debug.rs clippy: Fix warnings in shared and config, fonts, layout, and layout_2020 components (#32674) 2024-07-04 14:18:58 +00:00
lib.rs layout: Generalize ContainingBlock's block size to a SizeConstraint (#34946) 2025-01-13 10:25:33 +00:00
lists.rs layout: Add LayoutBoxBase and use it for IndependentFormattingContext (#34507) 2024-12-07 19:12:25 +00:00
positioned.rs layout: Generalize ContainingBlock's block size to a SizeConstraint (#34946) 2025-01-13 10:25:33 +00:00
query.rs layout: Make Fragment hold ArcRefCell inside (#34923) 2025-01-13 09:59:59 +00:00
replaced.rs layout: Generalize ContainingBlock's block size to a SizeConstraint (#34946) 2025-01-13 10:25:33 +00:00
sizing.rs Treat % as 0 for the min-content contribution of replaced elements (#32103) 2025-01-06 14:43:30 +00:00
style_ext.rs layout: Generalize ContainingBlock's block size to a SizeConstraint (#34946) 2025-01-13 10:25:33 +00:00
traversal.rs Elide lifetimes where possible after rustup (#34824) 2025-01-03 18:54:44 +00:00