LibWeb: Add {,de}serialization steps for DOMRectReadonly

This commit is contained in:
Kenneth Myhra
2024-03-10 09:02:54 +01:00
committed by Andreas Kling
parent b7006b2423
commit 9f5fa4f4a0
5 changed files with 63 additions and 1 deletions

View File

@@ -39,6 +39,7 @@
#include <LibWeb/Geometry/DOMMatrixReadOnly.h>
#include <LibWeb/Geometry/DOMPoint.h>
#include <LibWeb/Geometry/DOMPointReadOnly.h>
#include <LibWeb/Geometry/DOMRectReadOnly.h>
#include <LibWeb/HTML/MessagePort.h>
#include <LibWeb/HTML/StructuredSerialize.h>
#include <LibWeb/WebIDL/ExceptionOr.h>
@@ -975,6 +976,8 @@ private:
return Geometry::DOMPointReadOnly::create(realm);
if (interface_name == "DOMPoint"sv)
return Geometry::DOMPoint::create(realm);
if (interface_name == "DOMRectReadOnly"sv)
return Geometry::DOMRectReadOnly::create(realm);
VERIFY_NOT_REACHED();
}