LibWeb: Add {,de}serialization steps for DOMRect

This commit is contained in:
Kenneth Myhra 2024-03-10 09:43:00 +01:00 committed by Andreas Kling
parent 9f5fa4f4a0
commit 94c6389fc0
Notes: sideshowbarker 2024-07-17 02:39:10 +09:00
5 changed files with 23 additions and 0 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/DOMRect.h>
#include <LibWeb/Geometry/DOMRectReadOnly.h>
#include <LibWeb/HTML/MessagePort.h>
#include <LibWeb/HTML/StructuredSerialize.h>
@ -978,6 +979,8 @@ private:
return Geometry::DOMPoint::create(realm);
if (interface_name == "DOMRectReadOnly"sv)
return Geometry::DOMRectReadOnly::create(realm);
if (interface_name == "DOMRect"sv)
return Geometry::DOMRect::create(realm);
VERIFY_NOT_REACHED();
}