mirror of
https://github.com/servo/servo.git
synced 2025-08-27 08:08:19 +01:00
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:
parent
3c89763b77
commit
913066d2e5
5 changed files with 6 additions and 9 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
2
tests/wpt/mozilla/meta/MANIFEST.json
vendored
2
tests/wpt/mozilla/meta/MANIFEST.json
vendored
|
@ -13725,7 +13725,7 @@
|
|||
]
|
||||
],
|
||||
"interfaces.https.html": [
|
||||
"40567f81c201fe775ad4735c231349fac8c33381",
|
||||
"a9447edae08028bd992e3aa7c9e7a2a483baa446",
|
||||
[
|
||||
null,
|
||||
{}
|
||||
|
|
|
@ -320,6 +320,8 @@ test_interfaces([
|
|||
"SVGElement",
|
||||
"SVGGraphicsElement",
|
||||
"SVGImageElement",
|
||||
"SVGMatrix",
|
||||
"SVGPoint",
|
||||
"SVGRect",
|
||||
"SVGSVGElement",
|
||||
"Text",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue