LibWeb: Include scrollable overflow in paint tree dumps

This commit is contained in:
Andreas Kling 2023-05-29 07:23:23 +02:00
commit 571c05bb47
Notes: sideshowbarker 2024-07-17 01:53:23 +09:00

View file

@ -814,6 +814,10 @@ void dump_tree(StringBuilder& builder, Painting::Paintable const& paintable, boo
if (paintable.layout_node().is_box()) {
auto const& paintable_box = static_cast<Painting::PaintableBox const&>(paintable);
builder.appendff(" {}", paintable_box.absolute_border_box_rect());
if (paintable_box.has_overflow()) {
builder.appendff(" overflow: {}", paintable_box.scrollable_overflow_rect().value());
}
}
builder.append("\n"sv);
for (auto const* child = paintable.first_child(); child; child = child->next_sibling()) {