LibWeb: Add CanvasImageSource to ImageBitmapSource typedef

This commit is contained in:
Totto16 2024-11-14 16:25:38 +01:00 committed by Tim Ledbetter
commit 9730e47d51
Notes: github-actions[bot] 2024-12-06 13:11:22 +00:00
8 changed files with 36 additions and 15 deletions

View file

@ -16,7 +16,7 @@
namespace Web::HTML {
using ImageBitmapSource = Variant<CanvasImageSource, GC::Root<FileAPI::Blob>, GC::Root<ImageData>>;
using ImageBitmapSource = FlattenVariant<CanvasImageSource, Variant<GC::Root<FileAPI::Blob>, GC::Root<ImageData>>>;
// https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#imagebitmapoptions
struct ImageBitmapOptions {