From 571c05bb473ceae4879348673749879c0b7e9e77 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 29 May 2023 07:23:23 +0200 Subject: [PATCH] LibWeb: Include scrollable overflow in paint tree dumps --- 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 f9569e2ef4..ea266a441d 100644 --- a/Userland/Libraries/LibWeb/Dump.cpp +++ b/Userland/Libraries/LibWeb/Dump.cpp @@ -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(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()) {