LibWeb: Add {,de}serialization steps for DOMMatrixReadonly

This commit is contained in:
Kenneth Myhra 2024-03-09 22:07:22 +01:00 committed by Andreas Kling
commit 181424377d
Notes: sideshowbarker 2024-07-17 05:09:48 +09:00
5 changed files with 170 additions and 2 deletions

View file

@ -35,6 +35,7 @@
#include <LibWeb/Bindings/Transferable.h>
#include <LibWeb/FileAPI/Blob.h>
#include <LibWeb/FileAPI/File.h>
#include <LibWeb/Geometry/DOMMatrixReadOnly.h>
#include <LibWeb/HTML/MessagePort.h>
#include <LibWeb/HTML/StructuredSerialize.h>
#include <LibWeb/WebIDL/ExceptionOr.h>
@ -963,6 +964,8 @@ private:
return FileAPI::Blob::create(realm);
if (interface_name == "File"sv)
return FileAPI::File::create(realm);
if (interface_name == "DOMMatrixReadOnly"sv)
return Geometry::DOMMatrixReadOnly::create(realm);
VERIFY_NOT_REACHED();
}