mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:07:44 +00:00
LibWeb: Port tag name from DeprecatedString in Dump
This commit is contained in:
parent
d8635fe541
commit
c4d841a6b8
1 changed files with 4 additions and 4 deletions
|
@ -138,13 +138,13 @@ void dump_tree(StringBuilder& builder, Layout::Node const& layout_node, bool sho
|
||||||
for (size_t i = 0; i < indent; ++i)
|
for (size_t i = 0; i < indent; ++i)
|
||||||
builder.append(" "sv);
|
builder.append(" "sv);
|
||||||
|
|
||||||
DeprecatedFlyString tag_name;
|
FlyString tag_name;
|
||||||
if (layout_node.is_anonymous())
|
if (layout_node.is_anonymous())
|
||||||
tag_name = "(anonymous)";
|
tag_name = "(anonymous)"_fly_string;
|
||||||
else if (is<DOM::Element>(layout_node.dom_node()))
|
else if (is<DOM::Element>(layout_node.dom_node()))
|
||||||
tag_name = verify_cast<DOM::Element>(*layout_node.dom_node()).local_name().to_deprecated_fly_string();
|
tag_name = verify_cast<DOM::Element>(*layout_node.dom_node()).local_name();
|
||||||
else
|
else
|
||||||
tag_name = layout_node.dom_node()->node_name().to_deprecated_fly_string();
|
tag_name = layout_node.dom_node()->node_name();
|
||||||
|
|
||||||
DeprecatedString identifier = "";
|
DeprecatedString identifier = "";
|
||||||
if (layout_node.dom_node() && is<DOM::Element>(*layout_node.dom_node())) {
|
if (layout_node.dom_node() && is<DOM::Element>(*layout_node.dom_node())) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue