From 8bacedc9a909cdad272c0869f2e4b422c1d6c5ed Mon Sep 17 00:00:00 2001 From: Moonchild Date: Wed, 16 Apr 2025 16:07:57 +0200 Subject: [PATCH] Issue #2729 - Add missing jsonifier interfaces to DOM{Matrix|Rect|Point} Resolves #2729 Resolves #2705 --- dom/webidl/DOMMatrix.webidl | 1 + dom/webidl/DOMPoint.webidl | 4 +++- dom/webidl/DOMRect.webidl | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dom/webidl/DOMMatrix.webidl b/dom/webidl/DOMMatrix.webidl index f5c9f99406..5a7c8aac7f 100644 --- a/dom/webidl/DOMMatrix.webidl +++ b/dom/webidl/DOMMatrix.webidl @@ -82,6 +82,7 @@ interface DOMMatrixReadOnly { [Throws] Float32Array toFloat32Array(); [Throws] Float64Array toFloat64Array(); [Exposed=Window] stringifier; + jsonifier; }; [Constructor, diff --git a/dom/webidl/DOMPoint.webidl b/dom/webidl/DOMPoint.webidl index 313a51bc53..3f2d8c5eea 100644 --- a/dom/webidl/DOMPoint.webidl +++ b/dom/webidl/DOMPoint.webidl @@ -19,7 +19,9 @@ interface DOMPointReadOnly { readonly attribute unrestricted double x; readonly attribute unrestricted double y; readonly attribute unrestricted double z; - readonly attribute unrestricted double w; + readonly attribute unrestricted double w; + + jsonifier; }; [Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0, diff --git a/dom/webidl/DOMRect.webidl b/dom/webidl/DOMRect.webidl index baf7ce2456..1c9be09664 100644 --- a/dom/webidl/DOMRect.webidl +++ b/dom/webidl/DOMRect.webidl @@ -36,6 +36,8 @@ interface DOMRectReadOnly { readonly attribute unrestricted double right; readonly attribute unrestricted double bottom; readonly attribute unrestricted double left; + + jsonifier; }; dictionary DOMRectInit {