Skip to content

Commit f626c1c

Browse files
committed
Restore WebGLRenderingContextBase#canvas
Closes microsoft#1050.
1 parent b5f95cd commit f626c1c

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-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+
canvas: HTMLCanvasElement;
1648516486
readonly drawingBufferHeight: GLsizei;
1648616487
readonly drawingBufferWidth: GLsizei;
1648716488
activeTexture(texture: GLenum): void;

inputfiles/addedTypes.json

+11
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,17 @@
179179
]
180180
}
181181
},
182+
"WebGLRenderingContextBase": {
183+
"properties": {
184+
"property": {
185+
"canvas": {
186+
"name": "canvas",
187+
"exposed": "Window",
188+
"type": "HTMLCanvasElement"
189+
}
190+
}
191+
}
192+
},
182193
"WindowEventHandlers": {
183194
"events": {
184195
"event": [

inputfiles/removedTypes.json

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

0 commit comments

Comments
 (0)