summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Dump.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-10-20 16:06:26 +0200
committerAndreas Kling <kling@serenityos.org>2022-10-20 16:06:26 +0200
commit9abe3b0db5015c47d2049fd7c1dd6170895bad66 (patch)
tree9a699e42793476b7f19bb8b5d468c539c065b69c /Userland/Libraries/LibWeb/Dump.cpp
parent58522f5088e84779425bbb97c46e76594179ddd2 (diff)
downloadserenity-9abe3b0db5015c47d2049fd7c1dd6170895bad66.zip
LibWeb: Unbreak layout tree dumps after layout tree GC changes
Layout::Node::class_name() no longer includes the `Web::Layout::` prefix and thus we don't need to be substringing them in dumps.
Diffstat (limited to 'Userland/Libraries/LibWeb/Dump.cpp')
-rw-r--r--Userland/Libraries/LibWeb/Dump.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Dump.cpp b/Userland/Libraries/LibWeb/Dump.cpp
index a5bdc34a80..2c08e9cf3f 100644
--- a/Userland/Libraries/LibWeb/Dump.cpp
+++ b/Userland/Libraries/LibWeb/Dump.cpp
@@ -143,7 +143,7 @@ void dump_tree(StringBuilder& builder, Layout::Node const& layout_node, bool sho
if (!is<Layout::Box>(layout_node)) {
builder.appendff("{}{}{} <{}{}{}{}>",
nonbox_color_on,
- layout_node.class_name().substring_view(13),
+ layout_node.class_name(),
color_off,
tag_name,
nonbox_color_on,
@@ -158,7 +158,7 @@ void dump_tree(StringBuilder& builder, Layout::Node const& layout_node, bool sho
builder.appendff("{}{}{} <{}{}{}{}> ",
color_on,
- box.class_name().substring_view(13),
+ box.class_name(),
color_off,
color_on,
tag_name,