mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +00:00
LibWeb: Add CanvasImageSource to ImageBitmapSource typedef
This commit is contained in:
parent
14e808e574
commit
9730e47d51
Notes:
github-actions[bot]
2024-12-06 13:11:22 +00:00
Author: https://github.com/Totto16
Commit: 9730e47d51
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1715
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/tcl3
8 changed files with 36 additions and 15 deletions
|
@ -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" };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue