mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
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.
13 lines
388 B
Plaintext
13 lines
388 B
Plaintext
AccumulatedVisualContext Tree:
|
|
[1] scroll_frame_id=1 (PaintableWithLines(BlockContainer<PRE>#out))
|
|
|
|
DisplayList:
|
|
SaveLayer@0
|
|
FillRect@1 rect=[8,8 29x30] color=rgb(0, 0, 0)
|
|
FillRect@1 rect=[38,8 28x30] color=rgb(0, 0, 0)
|
|
FillRect@1 rect=[67,8 29x30] color=rgb(0, 0, 0)
|
|
FillRect@1 rect=[97,8 28x30] color=rgb(0, 0, 0)
|
|
FillRect@1 rect=[126,8 29x30] color=rgb(0, 0, 0)
|
|
Restore@0
|
|
|