From 618273b48df50cdb90c521a40e8e847c8713f5c3 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 26 Mar 2022 00:10:36 +0100 Subject: [PATCH] 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. --- Userland/Libraries/LibWeb/Dump.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibWeb/Dump.cpp b/Userland/Libraries/LibWeb/Dump.cpp index ceb342e912..7fda549794 100644 --- a/Userland/Libraries/LibWeb/Dump.cpp +++ b/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"); }