LibWeb: Fix goofy layout tree dumps for NavigableContainerViewport

We were neglecting to emit a newline before recursing into these.
This commit is contained in:
Andreas Kling 2025-02-22 14:51:34 +01:00 committed by Andreas Kling
parent 198cec481a
commit a2fa3cbd69
Notes: github-actions[bot] 2025-02-22 19:03:40 +00:00
2 changed files with 21 additions and 10 deletions

View file

@ -334,6 +334,7 @@ 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());
builder.append("\n"sv);
if (auto const* nested_layout_root = document->layout_node()) {
++indent;
dump_tree(builder, *nested_layout_root, show_box_model, show_cascaded_properties, interactive);