LibWeb: Add {,de}serialization steps for ImageData

This commit is contained in:
Kenneth Myhra 2025-05-04 13:45:51 +02:00 committed by Shannon Booth
parent 5b4644d198
commit 6941b63890
Notes: github-actions[bot] 2025-05-08 14:13:01 +00:00
7 changed files with 131 additions and 25 deletions

View file

@ -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();
}