servo/components/layout_2020/fragment_tree
Martin Robinson 52db185568
layout: Avoid layout sometimes when stretching (#33967)
This is the second flexbox caching change. It seeks to detect when a
relayout can be avoided in the case of a stretching flex item. This
heuristic can be combined, because currently we still do relayout
sometimes when we do not need to.

For instance currently we always relayout when a flex child is itself a
column flex. This only needs to happen when the grandchildren themselves
grow or shrink. That optimization is perhaps a lower priority as
`flex-grow: 0 / flex-shrink: 1` is the default behavior for flex.

Since this change means we more consistenly zero out the percentage part
of `calc` expressions when they have circular dependencies, this causes one
test to start failing (`/css/css-values/calc-min-height-block-1.html`).
This is related to w3c/csswg-drafts#10969, which is pending on further
discussion in the working group.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Oriol Brufau <obrufau@igalia.com>
2024-10-24 17:44:30 +00:00
..
base_fragment.rs layout: Avoid layout sometimes when stretching (#33967) 2024-10-24 17:44:30 +00:00
box_fragment.rs Upgrade Stylo to 2024-10-04 (#33767) 2024-10-20 19:53:38 +00:00
containing_block.rs clippy: Fix various clippy warnings throughout the code (#33003) 2024-08-13 05:16:47 +00:00
fragment.rs layout: Add support for object-fit and object-position (#33479) 2024-09-18 06:20:28 +00:00
fragment_tree.rs layout: Convert the FragmentTree to physical geometry (#33030) 2024-08-14 12:22:06 +00:00
hoisted_shared_fragment.rs layout: Right-to-left support for other layout modes (#33375) 2024-09-11 13:40:11 +00:00
mod.rs clippy: Fix warnings in components/layout_2020 (#31611) 2024-03-11 14:24:33 +00:00
positioning_fragment.rs layout: Convert the FragmentTree to physical geometry (#33030) 2024-08-14 12:22:06 +00:00