LibWeb: Define CanvasImageSource only once

The Variant is already defined in CanvasDrawImage.h.
This commit is contained in:
Lucas CHOLLET 2024-04-05 09:06:51 -04:00 committed by Andreas Kling
parent 676fc5e8c6
commit 7d5b9122ec
Notes: sideshowbarker 2024-07-16 23:08:48 +09:00

View file

@ -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