Skip to content

Commit 18c98d8

Browse files
authored
Restore WebGLRenderingContextBase#canvas (#1051)
* Restore WebGLRenderingContextBase#canvas Closes #1050. * feedback
1 parent b5f95cd commit 18c98d8

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

baselines/dom.generated.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -16482,6 +16482,7 @@ declare var WebGLRenderingContext: {
1648216482
};
1648316483

1648416484
interface WebGLRenderingContextBase {
16485+
readonly canvas: HTMLCanvasElement;
1648516486
readonly drawingBufferHeight: GLsizei;
1648616487
readonly drawingBufferWidth: GLsizei;
1648716488
activeTexture(texture: GLenum): void;

inputfiles/addedTypes.json

+14
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,20 @@
179179
]
180180
}
181181
},
182+
"WebGLRenderingContextBase": {
183+
"properties": {
184+
"property": {
185+
"canvas": {
186+
"exposed": "Window",
187+
188+
// https://github.com/KhronosGroup/WebGL/pull/3296 will make these redundant
189+
"name": "canvas",
190+
"type": "HTMLCanvasElement",
191+
"readonly": true
192+
}
193+
}
194+
}
195+
},
182196
"WindowEventHandlers": {
183197
"events": {
184198
"event": [

inputfiles/removedTypes.json

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"WebGLRenderingContextBase": {
1717
"properties": {
1818
"namesakes": {
19+
// https://github.com/KhronosGroup/WebGL/pull/3296 will make this redundant
1920
"canvas": null
2021
}
2122
}

0 commit comments

Comments
 (0)