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.
This commit is contained in:
Job Bautista 2023-05-12 11:42:59 +08:00 committed by roytam1
commit 840658ab39
5 changed files with 43 additions and 2 deletions

View file

@ -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;
};