mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Add {,de}serialization steps for ImageData
This commit is contained in:
committed by
Shannon Booth
parent
5b4644d198
commit
6941b63890
Notes:
github-actions[bot]
2025-05-08 14:13:01 +00:00
Author: https://github.com/kennethmyhra Commit: https://github.com/LadybirdBrowser/ladybird/commit/6941b638903 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4596 Reviewed-by: https://github.com/shannonbooth ✅
@@ -46,6 +46,7 @@
|
||||
#include <LibWeb/Geometry/DOMQuad.h>
|
||||
#include <LibWeb/Geometry/DOMRect.h>
|
||||
#include <LibWeb/Geometry/DOMRectReadOnly.h>
|
||||
#include <LibWeb/HTML/ImageData.h>
|
||||
#include <LibWeb/HTML/MessagePort.h>
|
||||
#include <LibWeb/HTML/StructuredSerialize.h>
|
||||
#include <LibWeb/WebIDL/DOMException.h>
|
||||
@@ -1069,6 +1070,8 @@ private:
|
||||
return Crypto::CryptoKey::create(realm);
|
||||
if (interface_name == "DOMQuad"sv)
|
||||
return Geometry::DOMQuad::create(realm);
|
||||
if (interface_name == "ImageData"sv)
|
||||
return ImageData::create(realm);
|
||||
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user