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:
parent
f23baf0a2d
commit
bf25568703
Notes:
sideshowbarker
2024-07-16 23:34:49 +09:00
Author: https://github.com/awesomekling
Commit: bf25568703
Pull-request: https://github.com/SerenityOS/serenity/pull/19975
4 changed files with 67 additions and 44 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue