mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-05 15:49:15 +00:00
LibWeb: Implement transfer {,receiving} steps for ImageBitmap
This commit is contained in:
parent
c0976b18e0
commit
ed3d0d76ec
Notes:
github-actions[bot]
2025-07-20 00:31:58 +00:00
Author: https://github.com/kennethmyhra
Commit: ed3d0d76ec
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5445
Reviewed-by: https://github.com/shannonbooth
3 changed files with 22 additions and 9 deletions
|
@ -1147,6 +1147,11 @@ static WebIDL::ExceptionOr<GC::Ref<Bindings::PlatformObject>> create_transferred
|
|||
TRY(transform_stream->transfer_receiving_steps(decoder));
|
||||
return transform_stream;
|
||||
}
|
||||
case TransferType::ImageBitmap: {
|
||||
auto image_bitmap = target_realm.create<ImageBitmap>(target_realm);
|
||||
TRY(image_bitmap->transfer_receiving_steps(decoder));
|
||||
return image_bitmap;
|
||||
}
|
||||
case TransferType::ArrayBuffer:
|
||||
case TransferType::ResizableArrayBuffer:
|
||||
case TransferType::Unknown:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue