mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:57:35 +00:00
LibWeb: Measure the overflow for all scroll containers
Instead of just measuring the layout viewport, we now measure overflow in every box that is a scroll container. This has the side effect of no longer creating paintables for layout boxes that didn't participate in layout. (For example, empty/anonymous boxes that were ignored by flex itemization.) Such boxes are now marked as "(not painted)" in the layout tree dumps, as they have no paintable to dump geometry from.
This commit is contained in:
parent
b7d2f6fa88
commit
caa491b72a
50 changed files with 343 additions and 343 deletions
|
@ -112,15 +112,6 @@ struct LayoutState {
|
|||
CSSPixels border_box_width() const { return border_box_left() + content_width() + border_box_right(); }
|
||||
CSSPixels border_box_height() const { return border_box_top() + content_height() + border_box_bottom(); }
|
||||
|
||||
Optional<Painting::PaintableBox::OverflowData> overflow_data;
|
||||
|
||||
Painting::PaintableBox::OverflowData& ensure_overflow_data()
|
||||
{
|
||||
if (!overflow_data.has_value())
|
||||
overflow_data = Painting::PaintableBox::OverflowData {};
|
||||
return *overflow_data;
|
||||
}
|
||||
|
||||
Optional<LineBoxFragmentCoordinate> containing_line_box_fragment;
|
||||
|
||||
void add_floating_descendant(Box const& box) { m_floating_descendants.set(&box); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue