From 4160f1317429ca5911807c774062c833f0919f63 Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Sun, 6 Aug 2023 21:34:07 +0200 Subject: [PATCH] LibWeb: Include scroll offset in paint tree dump --- Userland/Libraries/LibWeb/Dump.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Userland/Libraries/LibWeb/Dump.cpp b/Userland/Libraries/LibWeb/Dump.cpp index a00261b760..3cadff6179 100644 --- a/Userland/Libraries/LibWeb/Dump.cpp +++ b/Userland/Libraries/LibWeb/Dump.cpp @@ -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()) {