Skip to content

Commit

Permalink
Restore WebGLRenderingContextBase#canvas (#1051)
Browse files Browse the repository at this point in the history
* Restore WebGLRenderingContextBase#canvas

Closes #1050.

* feedback
  • Loading branch information
saschanaz authored Jul 3, 2021
1 parent b5f95cd commit 18c98d8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions baselines/dom.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16482,6 +16482,7 @@ declare var WebGLRenderingContext: {
};

interface WebGLRenderingContextBase {
readonly canvas: HTMLCanvasElement;
readonly drawingBufferHeight: GLsizei;
readonly drawingBufferWidth: GLsizei;
activeTexture(texture: GLenum): void;
Expand Down
14 changes: 14 additions & 0 deletions inputfiles/addedTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,20 @@
]
}
},
"WebGLRenderingContextBase": {
"properties": {
"property": {
"canvas": {
"exposed": "Window",

// https://github.com/KhronosGroup/WebGL/pull/3296 will make these redundant
"name": "canvas",
"type": "HTMLCanvasElement",
"readonly": true
}
}
}
},
"WindowEventHandlers": {
"events": {
"event": [
Expand Down
1 change: 1 addition & 0 deletions inputfiles/removedTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"WebGLRenderingContextBase": {
"properties": {
"namesakes": {
// https://github.com/KhronosGroup/WebGL/pull/3296 will make this redundant
"canvas": null
}
}
Expand Down

0 comments on commit 18c98d8

Please sign in to comment.