servo/components/layout/fragment_tree
Martin Robinson a2f551eb2d
layout: Clone static position rectangles when caching in IndependentFormattingContext (#39591)
Hoisted absolutes that are cached in IndependentFormattingContexts may
have their HoistedSharedFragment reused between layouts. This means
that the original value of the adjusted static positioning rectangles
need to be preserved in cache. This change makes it so that these values
are cloned when being retrieved from the cache. Further adjustments up
the tree will now no longer affected the version in teh cache.

Testing: This should cause `/_mozilla/css/stacked_layers.html` to no
longer
be flaky.
Fixes: #39548.
Fixes: #39439.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Oriol Brufau <obrufau@igalia.com>
2025-10-01 06:50:54 +00:00
..
base_fragment.rs layout: Lay out collapsed table rows and columns, but don't paint them (#39027) 2025-09-01 12:58:36 +00:00
box_fragment.rs layout: Take sticky offsets into account for offset queries (#39385) 2025-09-19 14:20:15 +00:00
containing_block.rs layout: Combine layout_2020 and layout_thread_2020 into a crate called layout (#36613) 2025-04-19 10:17:03 +00:00
fragment.rs layout: Parameterize content box query (#38935) 2025-08-27 02:27:53 +00:00
fragment_tree.rs Switch the majority of fxhash uses to rustc_hash which is maintained (#39168) 2025-09-06 05:19:47 +00:00
hoisted_shared_fragment.rs layout: Clone static position rectangles when caching in IndependentFormattingContext (#39591) 2025-10-01 06:50:54 +00:00
mod.rs layout: Limit visibility of some types and removed unused enum variants / data (#38428) 2025-08-02 16:52:00 +00:00
positioning_fragment.rs Revert "Include the scrollable overflow of a child box if either its parent or child has overflow: visible (#38443)" (#38546) 2025-08-08 13:37:14 +00:00