mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-24 10:18:59 +00:00
LibWeb: Include scrollable overflow in paint tree dumps
This commit is contained in:
parent
5d0da8c096
commit
571c05bb47
Notes:
sideshowbarker
2024-07-17 01:53:23 +09:00
Author: https://github.com/awesomekling
Commit: 571c05bb47
Pull-request: https://github.com/SerenityOS/serenity/pull/19196
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