diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index db1f1519..c6261591 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -3760,6 +3760,28 @@ declare var DOMImplementation: { }; interface DOMMatrix extends DOMMatrixReadOnly { + a: number; + b: number; + c: number; + d: number; + e: number; + f: number; + m11: number; + m12: number; + m13: number; + m14: number; + m21: number; + m22: number; + m23: number; + m24: number; + m31: number; + m32: number; + m33: number; + m34: number; + m41: number; + m42: number; + m43: number; + m44: number; invertSelf(): DOMMatrix; multiplySelf(other?: DOMMatrixInit): DOMMatrix; preMultiplySelf(other?: DOMMatrixInit): DOMMatrix; @@ -3863,6 +3885,10 @@ declare var DOMParser: { }; interface DOMPoint extends DOMPointReadOnly { + w: number; + x: number; + y: number; + z: number; } declare var DOMPoint: { @@ -3906,6 +3932,10 @@ declare var DOMQuad: { }; interface DOMRect extends DOMRectReadOnly { + height: number; + width: number; + x: number; + y: number; } declare var DOMRect: { diff --git a/baselines/serviceworker.generated.d.ts b/baselines/serviceworker.generated.d.ts index e6e9e226..567ca623 100644 --- a/baselines/serviceworker.generated.d.ts +++ b/baselines/serviceworker.generated.d.ts @@ -1010,6 +1010,28 @@ declare var DOMException: { }; interface DOMMatrix extends DOMMatrixReadOnly { + a: number; + b: number; + c: number; + d: number; + e: number; + f: number; + m11: number; + m12: number; + m13: number; + m14: number; + m21: number; + m22: number; + m23: number; + m24: number; + m31: number; + m32: number; + m33: number; + m34: number; + m41: number; + m42: number; + m43: number; + m44: number; invertSelf(): DOMMatrix; multiplySelf(other?: DOMMatrixInit): DOMMatrix; preMultiplySelf(other?: DOMMatrixInit): DOMMatrix; @@ -1085,6 +1107,10 @@ declare var DOMMatrixReadOnly: { }; interface DOMPoint extends DOMPointReadOnly { + w: number; + x: number; + y: number; + z: number; } declare var DOMPoint: { @@ -1125,6 +1151,10 @@ declare var DOMQuad: { }; interface DOMRect extends DOMRectReadOnly { + height: number; + width: number; + x: number; + y: number; } declare var DOMRect: { diff --git a/baselines/sharedworker.generated.d.ts b/baselines/sharedworker.generated.d.ts index d3526e12..7e320386 100644 --- a/baselines/sharedworker.generated.d.ts +++ b/baselines/sharedworker.generated.d.ts @@ -954,6 +954,28 @@ declare var DOMException: { }; interface DOMMatrix extends DOMMatrixReadOnly { + a: number; + b: number; + c: number; + d: number; + e: number; + f: number; + m11: number; + m12: number; + m13: number; + m14: number; + m21: number; + m22: number; + m23: number; + m24: number; + m31: number; + m32: number; + m33: number; + m34: number; + m41: number; + m42: number; + m43: number; + m44: number; invertSelf(): DOMMatrix; multiplySelf(other?: DOMMatrixInit): DOMMatrix; preMultiplySelf(other?: DOMMatrixInit): DOMMatrix; @@ -1029,6 +1051,10 @@ declare var DOMMatrixReadOnly: { }; interface DOMPoint extends DOMPointReadOnly { + w: number; + x: number; + y: number; + z: number; } declare var DOMPoint: { @@ -1069,6 +1095,10 @@ declare var DOMQuad: { }; interface DOMRect extends DOMRectReadOnly { + height: number; + width: number; + x: number; + y: number; } declare var DOMRect: { diff --git a/baselines/webworker.generated.d.ts b/baselines/webworker.generated.d.ts index 8210dc1d..a4de4199 100644 --- a/baselines/webworker.generated.d.ts +++ b/baselines/webworker.generated.d.ts @@ -1021,6 +1021,28 @@ declare var DOMException: { }; interface DOMMatrix extends DOMMatrixReadOnly { + a: number; + b: number; + c: number; + d: number; + e: number; + f: number; + m11: number; + m12: number; + m13: number; + m14: number; + m21: number; + m22: number; + m23: number; + m24: number; + m31: number; + m32: number; + m33: number; + m34: number; + m41: number; + m42: number; + m43: number; + m44: number; invertSelf(): DOMMatrix; multiplySelf(other?: DOMMatrixInit): DOMMatrix; preMultiplySelf(other?: DOMMatrixInit): DOMMatrix; @@ -1096,6 +1118,10 @@ declare var DOMMatrixReadOnly: { }; interface DOMPoint extends DOMPointReadOnly { + w: number; + x: number; + y: number; + z: number; } declare var DOMPoint: { @@ -1136,6 +1162,10 @@ declare var DOMQuad: { }; interface DOMRect extends DOMRectReadOnly { + height: number; + width: number; + x: number; + y: number; } declare var DOMRect: { diff --git a/src/build/bcd/keep-alive.ts b/src/build/bcd/keep-alive.ts index d79ccd95..6ddeb1df 100644 --- a/src/build/bcd/keep-alive.ts +++ b/src/build/bcd/keep-alive.ts @@ -92,8 +92,34 @@ export const forceKeepAlive: Record = { ], CloseEvent: ["code", "reason", "wasClean"], DOMRectList: ["item", "length"], - DOMMatrix: ["fromFloat32Array", "fromFloat64Array", "fromMatrix"], - DOMRect: ["fromRect"], + DOMMatrix: [ + "fromFloat32Array", + "fromFloat64Array", + "fromMatrix", + "a", + "b", + "c", + "d", + "e", + "f", + "m11", + "m12", + "m13", + "m14", + "m21", + "m22", + "m23", + "m24", + "m31", + "m32", + "m33", + "m34", + "m41", + "m42", + "m43", + "m44", + ], + DOMRect: ["fromRect", "x", "y", "width", "height"], Document: ["charset", "inputEncoding"], Element: ["webkitMatchesSelector"], FileReader: ["onloadstart"], diff --git a/src/build/widlprocess.ts b/src/build/widlprocess.ts index 5436a767..96e4e8c3 100644 --- a/src/build/widlprocess.ts +++ b/src/build/widlprocess.ts @@ -175,9 +175,6 @@ function convertInterfaceCommon( member.name ); } else if (member.type === "attribute") { - if ((member.special as string) === "inherit") { - continue; // no need to redeclare - } const { properties } = result; const prop = convertAttribute(member, result.exposed); addComments(prop, commentMap, i.name, member.name);