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
Notes: sideshowbarker 2024-07-17 00:57:24 +09:00
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();
}