mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-02 14:19:15 +00:00
LibWeb: Include scroll offset in paint tree dump
This commit is contained in:
parent
b89481564b
commit
4160f13174
Notes:
sideshowbarker
2024-07-17 07:06:47 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 4160f13174
Pull-request: https://github.com/SerenityOS/serenity/pull/20395
Reviewed-by: https://github.com/MacDue
1 changed files with 4 additions and 0 deletions
|
@ -856,6 +856,10 @@ void dump_tree(StringBuilder& builder, Painting::Paintable const& paintable, boo
|
|||
if (paintable_box.has_scrollable_overflow()) {
|
||||
builder.appendff(" overflow: {}", paintable_box.scrollable_overflow_rect());
|
||||
}
|
||||
|
||||
if (!paintable_box.scroll_offset().is_zero()) {
|
||||
builder.appendff(" scroll-offset: {}", paintable_box.scroll_offset());
|
||||
}
|
||||
}
|
||||
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