LibWeb: Define CanvasImageSource
only once
The Variant is already defined in CanvasDrawImage.h.
This commit is contained in:
parent
676fc5e8c6
commit
7d5b9122ec
Notes:
sideshowbarker
2024-07-16 23:08:48 +09:00
Author: https://github.com/LucasChollet Commit: https://github.com/SerenityOS/serenity/commit/7d5b9122ec Pull-request: https://github.com/SerenityOS/serenity/pull/23850 Reviewed-by: https://github.com/shannonbooth ✅
1 changed files with 0 additions and 4 deletions
|
@ -37,10 +37,6 @@
|
|||
|
||||
namespace Web::HTML {
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/canvas.html#canvasimagesource
|
||||
// NOTE: This is the Variant created by the IDL wrapper generator, and needs to be updated accordingly.
|
||||
using CanvasImageSource = Variant<JS::Handle<HTMLImageElement>, JS::Handle<HTMLCanvasElement>>;
|
||||
|
||||
class CanvasRenderingContext2D
|
||||
: public Bindings::PlatformObject
|
||||
, public CanvasPath
|
||||
|
|
Loading…
Add table
Reference in a new issue