Files
ladybird/Tests/LibWeb/Text/expected/display_list/nested-overflow-containers.txt
Aliaksandr Kalenik 3012c0fe72 LibWeb: Store scroll frames by value in contiguous storage
Replace per-frame heap-allocated RefCounted ScrollFrame objects with a
single contiguous Vector<ScrollFrame> inside ScrollState. All frames for
a viewport are now stored in one allocation, using type-safe
ScrollFrameIndex instead of RefPtr pointers.

This reduces allocation churn, improves cache locality, and moves
parent-chain traversal (cumulative offset, nearest scrolling ancestor)
into ScrollState — similar to how visual context nodes were recently
consolidated into AccumulatedVisualContextTree.
2026-03-12 12:06:40 +01:00

19 lines
688 B
Plaintext

AccumulatedVisualContext Tree:
[1] scroll_frame_id=1 (PaintableWithLines(BlockContainer<PRE>#out))
[2] clip=[10,10 200x150]
[3] scroll_frame_id=2 (PaintableWithLines(BlockContainer(anonymous)))
[4] clip=[11,11 300x100]
[5] scroll_frame_id=3 (PaintableWithLines(BlockContainer(anonymous)))
DisplayList:
SaveLayer@0
FillPath@1 path_bounding_rect=[8,8 204x154]
FillRect@3 rect=[10,10 302x102] color=rgb(255, 255, 224)
FillPath@3 path_bounding_rect=[10,10 302x102]
FillRect@5 rect=[11,11 400x80] color=rgb(240, 128, 128)
DrawGlyphRun@5 rect=[11,11 178x18] translation=[11,24.796875] color=rgb(0, 0, 0)
PaintScrollBar@3
PaintScrollBar@1
Restore@0