LibWeb: Add {,de}serialization steps for DOMPoint

This commit is contained in:
Kenneth Myhra
2024-03-09 23:10:11 +01:00
committed by Andreas Kling
parent bf4fb39bfb
commit b7006b2423
5 changed files with 23 additions and 0 deletions

View File

@@ -37,6 +37,7 @@
#include <LibWeb/FileAPI/File.h>
#include <LibWeb/Geometry/DOMMatrix.h>
#include <LibWeb/Geometry/DOMMatrixReadOnly.h>
#include <LibWeb/Geometry/DOMPoint.h>
#include <LibWeb/Geometry/DOMPointReadOnly.h>
#include <LibWeb/HTML/MessagePort.h>
#include <LibWeb/HTML/StructuredSerialize.h>
@@ -972,6 +973,8 @@ private:
return Geometry::DOMMatrix::create(realm);
if (interface_name == "DOMPointReadOnly"sv)
return Geometry::DOMPointReadOnly::create(realm);
if (interface_name == "DOMPoint"sv)
return Geometry::DOMPoint::create(realm);
VERIFY_NOT_REACHED();
}