mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 08:10:02 +00:00
LibWeb: Recurse into NavigableContentViewport in layout dumps
This commit is contained in:
parent
3ebc7fbd28
commit
b859a6f2e0
Notes:
github-actions[bot]
2024-11-26 17:59:15 +00:00
Author: https://github.com/awesomekling
Commit: b859a6f2e0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2592
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue