LibWeb: Delete NavigableContainerViewportPaintable::layout_box()

No need for this method when we could reach into DOM node directly from
Paintable.
This commit is contained in:
Aliaksandr Kalenik 2025-10-10 03:30:16 +02:00 committed by Jelle Raaijmakers
commit 5c699e1a45
Notes: github-actions[bot] 2025-10-10 07:05:32 +00:00
3 changed files with 5 additions and 9 deletions

View file

@ -2687,7 +2687,7 @@ void Navigable::start_display_list_rendering(Gfx::PaintingSurface& painting_surf
scroll_state_snapshot_by_display_list.set(*display_list, move(scroll_state_snapshot));
// Collect scroll state snapshots for each nested navigable
document_paintable.for_each_in_inclusive_subtree_of_type<Painting::NavigableContainerViewportPaintable>([&scroll_state_snapshot_by_display_list](auto& navigable_container_paintable) {
auto const* hosted_document = navigable_container_paintable.layout_box().dom_node().content_document_without_origin_check();
auto const* hosted_document = navigable_container_paintable.navigable_container().content_document_without_origin_check();
if (!hosted_document || !hosted_document->paintable())
return TraversalDecision::Continue;
// We are only interested in collecting scroll state snapshots for visible nested navigables, which is