diff options
author | Daniel Adams <70986246+msub2@users.noreply.github.com> | 2024-09-22 11:55:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-22 11:55:31 +0000 |
commit | 3a0d27b2312c6396e85178615290ac2ec3592ce1 (patch) | |
tree | 176d477ddbcda90e0c1ed1041868b67b28f92fbf /components/script/dom/webidls/WebGLRenderingContext.webidl | |
parent | 8276673bae999c3e74d71c81ca84842ed1365c89 (diff) | |
download | servo-3a0d27b2312c6396e85178615290ac2ec3592ce1.tar.gz servo-3a0d27b2312c6396e85178615290ac2ec3592ce1.zip |
webgl: Update IDL exposed members (#33509)
* Update IDLs to expose on Workers
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Update usage of Canvas/OffscreenCanvas union, add label
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Update WPT expectations
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Fix match arm
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Add missing spec links
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Update expectations
Signed-off-by: Daniel Adams <msub2official@gmail.com>
* Update interfaces.worker.js
Signed-off-by: Daniel Adams <msub2official@gmail.com>
---------
Signed-off-by: Daniel Adams <msub2official@gmail.com>
Diffstat (limited to 'components/script/dom/webidls/WebGLRenderingContext.webidl')
-rw-r--r-- | components/script/dom/webidls/WebGLRenderingContext.webidl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/webidls/WebGLRenderingContext.webidl b/components/script/dom/webidls/WebGLRenderingContext.webidl index fcd3f9752ae..6938e547cce 100644 --- a/components/script/dom/webidls/WebGLRenderingContext.webidl +++ b/components/script/dom/webidls/WebGLRenderingContext.webidl @@ -43,7 +43,7 @@ dictionary WebGLContextAttributes { GLboolean failIfMajorPerformanceCaveat = false; }; -[Exposed=Window] +[Exposed=(Window,Worker)] interface mixin WebGLRenderingContextBase { @@ -465,7 +465,7 @@ interface mixin WebGLRenderingContextBase const GLenum UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243; const GLenum BROWSER_DEFAULT_WEBGL = 0x9244; - readonly attribute HTMLCanvasElement canvas; + readonly attribute (HTMLCanvasElement or OffscreenCanvas) canvas; readonly attribute GLsizei drawingBufferWidth; readonly attribute GLsizei drawingBufferHeight; @@ -680,7 +680,7 @@ interface mixin WebGLRenderingContextOverloads undefined uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, Float32List value); }; -[Exposed=(Window)] +[Exposed=(Window,Worker)] interface WebGLRenderingContext { }; |