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

LibWeb: Include scroll offset in paint tree dump

This commit is contained in:
Aliaksandr Kalenik 2023-08-06 21:34:07 +02:00 committed by Andreas Kling
parent b89481564b
commit 4160f13174

View file

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