mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-25 17:39:27 +00:00
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:
parent
c1ff2a845c
commit
5c699e1a45
Notes:
github-actions[bot]
2025-10-10 07:05:32 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 5c699e1a45
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6433
Reviewed-by: https://github.com/gmta ✅
3 changed files with 5 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue