mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +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
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue