LibWeb: Recurse into NavigableContentViewport in layout dumps

This commit is contained in:
Andreas Kling 2024-11-26 12:29:41 +01:00 committed by Andreas Kling
commit b859a6f2e0
Notes: github-actions[bot] 2024-11-26 17:59:15 +00:00

View file

@ -327,6 +327,11 @@ void dump_tree(StringBuilder& builder, Layout::Node const& layout_node, bool sho
auto const& frame_box = static_cast<Layout::NavigableContainerViewport const&>(box);
if (auto const* document = frame_box.dom_node().content_document_without_origin_check()) {
builder.appendff(" (url: {})", document->url());
if (auto const* nested_layout_root = document->layout_node()) {
++indent;
dump_tree(builder, *nested_layout_root, show_box_model, show_specified_style, interactive);
--indent;
}
}
}