mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:07:44 +00:00
LibWeb: Create a basic layout node for HTMLVideoElement
This commit is contained in:
parent
725d7c3699
commit
f156d3d5e5
10 changed files with 338 additions and 0 deletions
28
Userland/Libraries/LibWeb/Painting/VideoPaintable.h
Normal file
28
Userland/Libraries/LibWeb/Painting/VideoPaintable.h
Normal file
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/Forward.h>
|
||||
#include <LibWeb/Painting/PaintableBox.h>
|
||||
|
||||
namespace Web::Painting {
|
||||
|
||||
class VideoPaintable final : public PaintableBox {
|
||||
JS_CELL(VideoPaintable, PaintableBox);
|
||||
|
||||
public:
|
||||
static JS::NonnullGCPtr<VideoPaintable> create(Layout::VideoBox const&);
|
||||
|
||||
virtual void paint(PaintContext&, PaintPhase) const override;
|
||||
|
||||
Layout::VideoBox const& layout_box() const;
|
||||
|
||||
private:
|
||||
VideoPaintable(Layout::VideoBox const&);
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue