瀏覽代碼

LibWeb: Stop polluting layout tree dumps with TextNode memory addresses

I've never actually used this for anything, and it's pretty noisy.
Andreas Kling 2 年之前
父節點
當前提交
6960a1bb45
共有 1 個文件被更改,包括 0 次插入4 次删除
  1. 0 4
      Userland/Libraries/LibWeb/Dump.cpp

+ 0 - 4
Userland/Libraries/LibWeb/Dump.cpp

@@ -151,8 +151,6 @@ void dump_tree(StringBuilder& builder, Layout::Node const& layout_node, bool sho
             nonbox_color_on,
             identifier,
             color_off);
-        if (interactive)
-            builder.appendff(" @{:p}", &layout_node);
         builder.append("\n"sv);
     } else {
         auto& box = verify_cast<Layout::Box>(layout_node);
@@ -263,8 +261,6 @@ void dump_tree(StringBuilder& builder, Layout::Node const& layout_node, bool sho
                     fragment_index,
                     color_off,
                     fragment.layout_node().class_name());
-                if (interactive)
-                    builder.appendff("@{:p}, ", &fragment.layout_node());
                 builder.appendff("start: {}, length: {}, rect: {}\n",
                     fragment.start(),
                     fragment.length(),