Files
servo/components/layout
Steven Novaryo def1ffa004 layout: Move resolved_sticky_offset to BoxFragmentRareData (#43056)
Wrap `BoxFragment` rare data with `AtomicRefCell` and move
`resolved_sticky_offset` to the `BoxFragmentRareData` since it is
relevant only for `position: sticky`. It reduce the size of
`BoxFragment` from 296 to 264. This allow us to add more rare data to
`BoxFragment` after the reflow, such as the calculation of scrollbar
that requires scrollable overflow to be calculated beforehand.

Testing: No WPT change.

---------

Signed-off-by: Jo Steven Novaryo <steven.novaryo@gmail.com>
2026-03-19 10:50:38 +00:00
..