mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
LibWeb: Replace ScrollStateSnapshotByDisplayList with a plain snapshot
Cleanup following the per-Navigable rasterization split: since each Navigable now rasterizes its own display list independently, the HashMap keyed on display list was always populated with exactly one entry. Pass the ScrollStateSnapshot directly through the display list player and rendering thread instead.
This commit is contained in:
committed by
Alexander Kalenik
parent
ad2ee4fe7a
commit
d9eec0d204
Notes:
github-actions[bot]
2026-04-07 13:10:37 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/d9eec0d204a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8793
@@ -3109,11 +3109,9 @@ void Navigable::record_display_list_and_scroll_state(PaintConfig paint_config)
|
||||
return;
|
||||
|
||||
auto& document_paintable = *document->paintable();
|
||||
Painting::ScrollStateSnapshotByDisplayList scroll_state_snapshot_by_display_list;
|
||||
document_paintable.refresh_scroll_state();
|
||||
scroll_state_snapshot_by_display_list.set(*display_list, document_paintable.scroll_state_snapshot());
|
||||
|
||||
m_rendering_thread.update_display_list(*display_list, move(scroll_state_snapshot_by_display_list));
|
||||
m_rendering_thread.update_display_list(*display_list, Painting::ScrollStateSnapshot(document_paintable.scroll_state_snapshot()));
|
||||
}
|
||||
|
||||
void Navigable::paint_next_frame()
|
||||
|
||||
Reference in New Issue
Block a user