1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:47:35 +00:00

LibWeb: Include scrollable overflow in paint tree dumps

This commit is contained in:
Andreas Kling 2023-05-29 07:23:23 +02:00
parent 5d0da8c096
commit 571c05bb47

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()) {