diff options
author | Job Bautista <jobbautista9@aol.com> | 2023-05-12 11:42:59 +0800 |
---|---|---|
committer | Job Bautista <jobbautista9@aol.com> | 2023-05-12 16:26:05 +0800 |
commit | 286e18e40ca01418725b978e4cd140f085b63079 (patch) | |
tree | 391d8a6cfe75ccc702b6be316be111b2cc746351 /dom/webidl | |
parent | 4c2a1920b821645f1766dec320d83f1ffb97ce35 (diff) | |
download | uxp-286e18e40ca01418725b978e4cd140f085b63079.tar.gz |
Issue #2241 - Part 4.2: Resurrect DOMQuad.bounds, but deprecated.
This also forces DOMQuad.toJSON() to only return the points.
Backported from Mozilla bug 1186265.
Diffstat (limited to 'dom/webidl')
-rw-r--r-- | dom/webidl/DOMQuad.webidl | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/dom/webidl/DOMQuad.webidl b/dom/webidl/DOMQuad.webidl index f3674e9ad7..7370330b29 100644 --- a/dom/webidl/DOMQuad.webidl +++ b/dom/webidl/DOMQuad.webidl @@ -21,5 +21,21 @@ interface DOMQuad { [SameObject] readonly attribute DOMPoint p4; [NewObject] DOMRectReadOnly getBounds(); - [Default] object toJSON(); + [SameObject, Deprecated=DOMQuadBoundsAttr] readonly attribute DOMRectReadOnly bounds; + + DOMQuadJSON toJSON(); +}; + +dictionary DOMQuadJSON { + DOMPoint p1; + DOMPoint p2; + DOMPoint p3; + DOMPoint p4; +}; + +dictionary DOMQuadInit { + DOMPointInit p1; + DOMPointInit p2; + DOMPointInit p3; + DOMPointInit p4; }; |