mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Set width/height of ImageBitmap when deserializing or receiving
This commit is contained in:
committed by
Jelle Raaijmakers
parent
3ca4ff6037
commit
498e59f71d
Notes:
github-actions[bot]
2025-10-28 17:07:06 +00:00
Author: https://github.com/Lubrsi Commit: https://github.com/LadybirdBrowser/ladybird/commit/498e59f71dd Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6617 Reviewed-by: https://github.com/gmta ✅
@@ -84,7 +84,7 @@ WebIDL::ExceptionOr<void> ImageBitmap::serialization_steps(HTML::TransferDataEnc
|
||||
WebIDL::ExceptionOr<void> ImageBitmap::deserialization_steps(HTML::TransferDataDecoder& serialized, HTML::DeserializationMemory&)
|
||||
{
|
||||
// 1. Set value's bitmap data to serialized.[[BitmapData]].
|
||||
m_bitmap = TRY(deserialize_bitmap(this->realm(), serialized));
|
||||
set_bitmap(TRY(deserialize_bitmap(this->realm(), serialized)));
|
||||
|
||||
return {};
|
||||
}
|
||||
@@ -107,7 +107,7 @@ WebIDL::ExceptionOr<void> ImageBitmap::transfer_steps(HTML::TransferDataEncoder&
|
||||
WebIDL::ExceptionOr<void> ImageBitmap::transfer_receiving_steps(HTML::TransferDataDecoder& data_holder)
|
||||
{
|
||||
// 1. Set value's bitmap data to dataHolder.[[BitmapData]].
|
||||
m_bitmap = TRY(deserialize_bitmap(this->realm(), data_holder));
|
||||
set_bitmap(TRY(deserialize_bitmap(this->realm(), data_holder)));
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user