mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 11:18:13 +00:00
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:
parent
136ac1a6a5
commit
c01c4b41e2
389 changed files with 441 additions and 384 deletions
24
Userland/Libraries/LibWeb/Painting/ViewportPaintable.h
Normal file
24
Userland/Libraries/LibWeb/Painting/ViewportPaintable.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Andreas Kling <kling@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/Painting/PaintableBox.h>
|
||||
|
||||
namespace Web::Painting {
|
||||
|
||||
class ViewportPaintable final : public PaintableWithLines {
|
||||
JS_CELL(ViewportPaintable, PaintableWithLines);
|
||||
|
||||
public:
|
||||
static JS::NonnullGCPtr<ViewportPaintable> create(Layout::Viewport const&);
|
||||
virtual ~ViewportPaintable() override;
|
||||
|
||||
private:
|
||||
explicit ViewportPaintable(Layout::Viewport const&);
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue