Add legacy window aliases SVGMatrix/SVGPoint for DOMMatrix/DOMPoint (#38810)

Adds the legacy window aliases `SVGMatrix`/`SVGPoint` for
`DOMMatrix`/`DOMPoint`.

Testing: Covered by WPT (`css/geometry`).

---------

Signed-off-by: lumiscosity <averyrudelphe@gmail.com>
This commit is contained in:
lumiscosity 2025-08-21 09:19:25 +02:00 committed by GitHub
parent 3c89763b77
commit 913066d2e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 6 additions and 9 deletions

View file

@ -5,7 +5,7 @@
// https://drafts.fxtf.org/geometry/#dommatrix
[Exposed=(Window,Worker,PaintWorklet),
LegacyWindowAlias=WebKitCSSMatrix]
LegacyWindowAlias=(SVGMatrix,WebKitCSSMatrix)]
interface DOMMatrix : DOMMatrixReadOnly {
[Throws] constructor(optional (DOMString or sequence<unrestricted double>) init);

View file

@ -11,7 +11,8 @@
// http://dev.w3.org/fxtf/geometry/Overview.html#dompoint
[Exposed=(Window,Worker,PaintWorklet),
Serializable]
Serializable,
LegacyWindowAlias=SVGPoint]
interface DOMPoint : DOMPointReadOnly {
[Throws] constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
optional unrestricted double z = 0, optional unrestricted double w = 1);

View file

@ -10,9 +10,6 @@
[DOMMatrix interface: operation setMatrixValue(DOMString)]
expected: FAIL
[DOMPoint interface: legacy window alias]
expected: FAIL
[DOMMatrix interface: calling setMatrixValue(DOMString) on new DOMMatrix() with too few arguments must throw TypeError]
expected: FAIL
@ -25,9 +22,6 @@
[DOMRectList must be primary interface of [object DOMRect\]]
expected: FAIL
[DOMMatrix interface: legacy window alias]
expected: FAIL
[Stringification of [object DOMRect\]]
expected: FAIL

View file

@ -13725,7 +13725,7 @@
]
],
"interfaces.https.html": [
"40567f81c201fe775ad4735c231349fac8c33381",
"a9447edae08028bd992e3aa7c9e7a2a483baa446",
[
null,
{}

View file

@ -320,6 +320,8 @@ test_interfaces([
"SVGElement",
"SVGGraphicsElement",
"SVGImageElement",
"SVGMatrix",
"SVGPoint",
"SVGRect",
"SVGSVGElement",
"Text",