Skip to content

Commit 96ac9d5

Browse files
zcorpansvgeesus
authored andcommitted
Use [LegacyWindowAlias] for SVG* and WebKitCSSMatrix (w3c#167)
See whatwg/webidl#362 Tests: web-platform-tests/wpt#5991
1 parent 19dd1a4 commit 96ac9d5

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

geometry/Overview.bs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ interface DOMPointReadOnly {
8989
[Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
9090
optional unrestricted double z = 0, optional unrestricted double w = 1),
9191
Exposed=(Window,Worker),
92-
Serializable]
92+
Serializable,
93+
LegacyWindowAlias=SVGPoint]
9394
interface DOMPoint : DOMPointReadOnly {
9495
[NewObject] static DOMPoint fromPoint(optional DOMPointInit other);
9596

@@ -213,9 +214,8 @@ and returns a new {{DOMPoint}} object.
213214
the attribute values <code>x: 20</code> and <code>y: 18</code>.
214215
</div>
215216

216-
<p>For historical reasons, {{Window}} objects must also have a writable, configurable,
217-
non-enumerable property named <dfn dfn-type=interface><code>SVGPoint</code></dfn> whose value is the
218-
{{DOMPoint}} interface object.
217+
<p>For historical reasons, the {{DOMPoint}} interface has the legacy window alias <dfn
218+
dfn-type=interface><code>SVGPoint</code></dfn>.
219219

220220

221221
<h2 id=DOMRect>The DOMRect interfaces</h2>
@@ -271,7 +271,8 @@ interface DOMRectReadOnly {
271271
[Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
272272
optional unrestricted double width = 0, optional unrestricted double height = 0),
273273
Exposed=(Window,Worker),
274-
Serializable]
274+
Serializable,
275+
LegacyWindowAlias=SVGRect]
275276
interface DOMRect : DOMRectReadOnly {
276277
[NewObject] static DOMRect fromRect(optional DOMRectInit other);
277278

@@ -373,9 +374,8 @@ steps:
373374
coordinate</a>, <a for=rectangle>x coordinate</a> + <a for=rectangle>width dimension</a>).
374375
</div>
375376

376-
<p>For historical reasons, {{Window}} objects must also have a writable, configurable,
377-
non-enumerable property named <dfn dfn-type=interface><code>SVGRect</code></dfn> whose value is the
378-
{{DOMRect}} interface object.
377+
<p>For historical reasons, the {{DOMRect}} interface has the legacy window alias <dfn
378+
dfn-type=interface><code>SVGRect</code></dfn>.
379379

380380

381381
<h2 id=DOMQuad>The DOMQuad interface</h2>
@@ -698,7 +698,8 @@ interface DOMMatrixReadOnly {
698698

699699
[Constructor(optional (DOMString or sequence&lt;unrestricted double>) init),
700700
Exposed=(Window,Worker),
701-
Serializable]
701+
Serializable,
702+
LegacyWindowAlias=(SVGMatrix,WebKitCSSMatrix)]
702703
interface DOMMatrix : DOMMatrixReadOnly {
703704
[NewObject] static DOMMatrix fromMatrix(optional DOMMatrixInit other);
704705
[NewObject] static DOMMatrix fromFloat32Array(Float32Array array32);
@@ -808,10 +809,9 @@ prose.
808809
<p>The {{DOMMatrix}} and {{DOMMatrixReadOnly}} interfaces replace the <code>SVGMatrix</code>
809810
interface from SVG. [[SVG11]]
810811

811-
<p>For historical reasons, {{Window}} objects must also have writable, configurable, non-enumerable
812-
properties named <dfn dfn-type=interface><code>SVGMatrix</code></dfn> and <dfn
813-
dfn-type=interface><code>WebKitCSSMatrix</code></dfn> whose value is the {{DOMMatrix}} interface
814-
object.
812+
<p>For historical reasons, the {{DOMMatrix}} interface has the legacy window aliases <dfn
813+
dfn-type=interface><code>SVGMatrix</code></dfn> and <dfn
814+
dfn-type=interface><code>WebKitCSSMatrix</code></dfn>.
815815

816816

817817
<h3 id=dommatrixinit-dictionary>DOMMatrixInit dictionary</h3>

0 commit comments

Comments
 (0)