LibWeb: Add ViewportPaintable to represent viewports in the paint tree

This patch just adds the new root paintable and updates the tests
expectations. The next patch will move painting logic from the layout
viewport to the paint viewport.
This commit is contained in:
Andreas Kling 2023-08-18 15:52:40 +02:00
commit c01c4b41e2
Notes: sideshowbarker 2024-07-16 22:11:09 +09:00
389 changed files with 441 additions and 384 deletions

View file

@ -9,6 +9,7 @@
#include <LibWeb/Layout/Viewport.h>
#include <LibWeb/Painting/PaintableBox.h>
#include <LibWeb/Painting/StackingContext.h>
#include <LibWeb/Painting/ViewportPaintable.h>
namespace Web::Layout {
@ -126,4 +127,9 @@ void Viewport::recompute_selection_states()
}
}
JS::GCPtr<Painting::Paintable> Viewport::create_paintable() const
{
return Painting::ViewportPaintable::create(*this);
}
}