Jelajahi Sumber

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 tahun lalu
induk
melakukan
618273b48d
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  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");
     }