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:
parent
5d0da8c096
commit
571c05bb47
1 changed files with 4 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue