1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00

LibWeb: Bring measuring of scrollable overflow closer to spec

Importantly, we now only consider overflow from descendants with
explicltly visible overflow, and only from descendants that have the
measured box as their containing block.

Also, we now measure scrollable overflow for all boxes, not just scroll
containers. This will allow us to fix a long-standing paint problem in
the next commit.
This commit is contained in:
Andreas Kling 2023-07-12 18:55:23 +02:00
parent f23baf0a2d
commit bf25568703
Notes: sideshowbarker 2024-07-16 23:34:49 +09:00
4 changed files with 67 additions and 44 deletions

View file

@ -825,8 +825,8 @@ void dump_tree(StringBuilder& builder, Painting::Paintable const& paintable, boo
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());
if (paintable_box.has_scrollable_overflow()) {
builder.appendff(" overflow: {}", paintable_box.scrollable_overflow_rect());
}
}
builder.append("\n"sv);