浏览代码

LibWeb: Include children-are-inline state in layout tree dumps

Sometimes it's really helpful to know if a box considers its children to
be inline or not.
Andreas Kling 3 年之前
父节点
当前提交
618273b48d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Userland/Libraries/LibWeb/Dump.cpp

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

@@ -223,6 +223,8 @@ void dump_tree(StringBuilder& builder, Layout::Node const& layout_node, bool sho
                 box.box_model().margin.bottom);
         }
 
+        builder.appendff(" children: {}", box.children_are_inline() ? "inline" : "not-inline");
+
         builder.append("\n");
     }