Restore writeable attribute of geometry interfaces (#1070)

Fixes the first issue raised in #1067.
This commit is contained in:
Kagami Sascha Rosylight 2021-07-17 02:10:46 +02:00 коммит произвёл GitHub
Родитель ca77744aa6
Коммит 2daa98661d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
6 изменённых файлов: 148 добавлений и 5 удалений

30
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: {

30
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: {

30
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: {

30
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: {

Просмотреть файл

@ -92,8 +92,34 @@ export const forceKeepAlive: Record<string, string[]> = {
],
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"],

Просмотреть файл

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