Files
servo/components/layout/table
Oriol Brufau 7e39dfdcee layout: Cleanup clear_fragment_layout_cache() (#40040)
`LayoutBox::clear_fragment_layout_cache()` was just redirecting to the
`clear_fragment_layout_cache()` method of inner structures, until
reaching `LayoutBoxBase` where the work is actually done.

So this patch gets the `LayoutBoxBase` first, and then calls the method
on it. To do so, `LayoutBox::with_base_fold()` is added as a non-mutable
version of the existing `LayoutBox::with_base_mut_fold()`. But since we
the return value doesn't matter, `LayoutBox::with_each_base()` is also
added as a tiny helper around `LayoutBox::with_base_fold()`.

Testing: Not needed, no behavior change

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
2025-10-25 15:55:13 +00:00
..