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

@ -1,5 +1,7 @@
#import <FileAPI/Blob.idl>
#import <HTML/ImageData.idl>
#import <HTML/CanvasRenderingContext2D.idl>
#import <HTML/Canvas/CanvasDrawImage.idl>
// https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#images-2
[Exposed=(Window,Worker), Serializable, Transferable]
@ -9,8 +11,10 @@ interface ImageBitmap {
undefined close();
};
// FIXME: This should also includes CanvasImageSource
typedef (Blob or
// https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#imagebitmapsource
typedef (CanvasImageSource or
Blob or
ImageData) ImageBitmapSource;
enum ImageOrientation { "from-image", "flipY" };