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:
Aliaksandr Kalenik
2026-04-05 17:32:54 +02:00
committed by Alexander Kalenik
parent ad2ee4fe7a
commit d9eec0d204
Notes: github-actions[bot] 2026-04-07 13:10:37 +00:00
7 changed files with 10 additions and 17 deletions

View File

@@ -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()