mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +00:00
LibWeb: Always include shadow roots in DOM debug dumps
This commit is contained in:
parent
d517e7fb3a
commit
9eb8025463
1 changed files with 4 additions and 2 deletions
|
@ -63,8 +63,10 @@ void dump_tree(StringBuilder& builder, DOM::Node const& node)
|
|||
builder.appendff("{}\n", node.node_name());
|
||||
}
|
||||
++indent;
|
||||
if (is<DOM::Element>(node) && verify_cast<DOM::Element>(node).shadow_root()) {
|
||||
dump_tree(builder, *verify_cast<DOM::Element>(node).shadow_root());
|
||||
if (is<DOM::Element>(node)) {
|
||||
if (auto* shadow_root = static_cast<DOM::Element const&>(node).shadow_root_internal()) {
|
||||
dump_tree(builder, *shadow_root);
|
||||
}
|
||||
}
|
||||
if (is<DOM::ParentNode>(node)) {
|
||||
if (!is<HTML::HTMLTemplateElement>(node)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue