Browse Source

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.
Andreas Kling 2 years ago
parent
commit
9abe3b0db5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Userland/Libraries/LibWeb/Dump.cpp

+ 2 - 2
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)) {
     if (!is<Layout::Box>(layout_node)) {
         builder.appendff("{}{}{} <{}{}{}{}>",
         builder.appendff("{}{}{} <{}{}{}{}>",
             nonbox_color_on,
             nonbox_color_on,
-            layout_node.class_name().substring_view(13),
+            layout_node.class_name(),
             color_off,
             color_off,
             tag_name,
             tag_name,
             nonbox_color_on,
             nonbox_color_on,
@@ -158,7 +158,7 @@ void dump_tree(StringBuilder& builder, Layout::Node const& layout_node, bool sho
 
 
         builder.appendff("{}{}{} <{}{}{}{}> ",
         builder.appendff("{}{}{} <{}{}{}{}> ",
             color_on,
             color_on,
-            box.class_name().substring_view(13),
+            box.class_name(),
             color_off,
             color_off,
             color_on,
             color_on,
             tag_name,
             tag_name,