mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb: Make HTMLVideoElement part of CanvasImageSource union
This commit is contained in:
parent
d8c36ed458
commit
abe1172d70
Notes:
github-actions[bot]
2024-10-05 07:21:47 +00:00
Author: https://github.com/Totto16 🔰
Commit: abe1172d70
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1635
7 changed files with 42 additions and 8 deletions
|
@ -42,6 +42,12 @@ public:
|
|||
VideoFrame const& current_frame() const { return m_current_frame; }
|
||||
RefPtr<Gfx::Bitmap> const& poster_frame() const { return m_poster_frame; }
|
||||
|
||||
// FIXME: This is a hack for images used as CanvasImageSource. Do something more elegant.
|
||||
RefPtr<Gfx::Bitmap> bitmap() const
|
||||
{
|
||||
return current_frame().frame;
|
||||
}
|
||||
|
||||
private:
|
||||
HTMLVideoElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue