mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 09:52:31 +00:00
LibWeb: Fix goofy layout tree dumps for NavigableContainerViewport
We were neglecting to emit a newline before recursing into these.
This commit is contained in:
parent
198cec481a
commit
a2fa3cbd69
Notes:
github-actions[bot]
2025-02-22 19:03:40 +00:00
Author: https://github.com/awesomekling
Commit: a2fa3cbd69
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3654
2 changed files with 21 additions and 10 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue