servo: Merge #13493 - Partial fix for #12415: expose WebGL interfaces (from scotttrinh:webgl-idl); r=jdm
authorScott Trinh <scott@scotttrinh.com>
Wed, 12 Oct 2016 06:53:17 -0500
changeset 339896 5da68ed525b14644e70dd41618bce5b2510fff01
parent 339895 0a3f272cd195d0b8b19a8df94d30a36a6b139e6a
child 339897 1feb891f8bdb0006a6024dd831ac7fe8fc277ad7
push id31307
push usergszorc@mozilla.com
push dateSat, 04 Feb 2017 00:59:06 +0000
treeherdermozilla-central@94079d43835f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdm
servo: Merge #13493 - Partial fix for #12415: expose WebGL interfaces (from scotttrinh:webgl-idl); r=jdm <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes partially fix #12415 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because they do not add any features <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: a466f43fe532157d2100788080e132b00864dd36
servo/components/script/dom/webidls/WebGLActiveInfo.webidl
servo/components/script/dom/webidls/WebGLBuffer.webidl
servo/components/script/dom/webidls/WebGLContextEvent.webidl
servo/components/script/dom/webidls/WebGLFramebuffer.webidl
servo/components/script/dom/webidls/WebGLObject.webidl
servo/components/script/dom/webidls/WebGLProgram.webidl
servo/components/script/dom/webidls/WebGLRenderbuffer.webidl
servo/components/script/dom/webidls/WebGLRenderingContext.webidl
servo/components/script/dom/webidls/WebGLShader.webidl
servo/components/script/dom/webidls/WebGLShaderPrecisionFormat.webidl
servo/components/script/dom/webidls/WebGLTexture.webidl
servo/components/script/dom/webidls/WebGLUniformLocation.webidl
--- a/servo/components/script/dom/webidls/WebGLActiveInfo.webidl
+++ b/servo/components/script/dom/webidls/WebGLActiveInfo.webidl
@@ -1,14 +1,13 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 //
 // WebGL IDL definitions scraped from the Khronos specification:
 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.7
 //
 
-[Exposed=(Window,Worker)]
 interface WebGLActiveInfo {
     readonly attribute GLint size;
     readonly attribute GLenum type;
     readonly attribute DOMString name;
 };
--- a/servo/components/script/dom/webidls/WebGLBuffer.webidl
+++ b/servo/components/script/dom/webidls/WebGLBuffer.webidl
@@ -1,11 +1,10 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 //
 // WebGL IDL definitions scraped from the Khronos specification:
 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.4
 //
 
-[Exposed=(Window,Worker)]
 interface WebGLBuffer : WebGLObject {
 };
--- a/servo/components/script/dom/webidls/WebGLContextEvent.webidl
+++ b/servo/components/script/dom/webidls/WebGLContextEvent.webidl
@@ -1,14 +1,14 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.15
-[Constructor(DOMString type, optional WebGLContextEventInit eventInit), Exposed=(Window,Worker)]
+[Constructor(DOMString type, optional WebGLContextEventInit eventInit)]
 interface WebGLContextEvent : Event {
     readonly attribute DOMString statusMessage;
 };
 
 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.15
 dictionary WebGLContextEventInit : EventInit {
     DOMString statusMessage;
 };
--- a/servo/components/script/dom/webidls/WebGLFramebuffer.webidl
+++ b/servo/components/script/dom/webidls/WebGLFramebuffer.webidl
@@ -1,11 +1,10 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 //
 // WebGL IDL definitions scraped from the Khronos specification:
 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.7
 //
 
-[Exposed=(Window,Worker)]
 interface WebGLFramebuffer : WebGLObject {
 };
--- a/servo/components/script/dom/webidls/WebGLObject.webidl
+++ b/servo/components/script/dom/webidls/WebGLObject.webidl
@@ -1,11 +1,10 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 //
 // WebGL IDL definitions scraped from the Khronos specification:
 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.3
 //
 
-[Exposed=(Window,Worker)]
 interface WebGLObject {
 };
--- a/servo/components/script/dom/webidls/WebGLProgram.webidl
+++ b/servo/components/script/dom/webidls/WebGLProgram.webidl
@@ -1,11 +1,10 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 //
 // WebGL IDL definitions scraped from the Khronos specification:
 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.6
 //
 
-[Exposed=(Window,Worker)]
 interface WebGLProgram : WebGLObject {
 };
--- a/servo/components/script/dom/webidls/WebGLRenderbuffer.webidl
+++ b/servo/components/script/dom/webidls/WebGLRenderbuffer.webidl
@@ -1,11 +1,10 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 //
 // WebGL IDL definitions scraped from the Khronos specification:
 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.5
 //
 
-[Exposed=(Window,Worker)]
 interface WebGLRenderbuffer : WebGLObject {
 };
--- a/servo/components/script/dom/webidls/WebGLRenderingContext.webidl
+++ b/servo/components/script/dom/webidls/WebGLRenderingContext.webidl
@@ -36,17 +36,17 @@ dictionary WebGLContextAttributes {
     GLboolean stencil = false;
     GLboolean antialias = true;
     GLboolean premultipliedAlpha = true;
     GLboolean preserveDrawingBuffer = false;
     GLboolean preferLowPowerToHighPerformance = false;
     GLboolean failIfMajorPerformanceCaveat = false;
 };
 
-[NoInterfaceObject, Exposed=(Window,Worker)]
+[NoInterfaceObject]
 interface WebGLRenderingContextBase
 {
 
     /* ClearBufferMask */
     const GLenum DEPTH_BUFFER_BIT               = 0x00000100;
     const GLenum STENCIL_BUFFER_BIT             = 0x00000400;
     const GLenum COLOR_BUFFER_BIT               = 0x00004000;
 
@@ -757,13 +757,12 @@ interface WebGLRenderingContextBase
     void vertexAttrib4fv(GLuint indx, object values);
     //void vertexAttrib4fv(GLuint indx, sequence<GLfloat> values);
     void vertexAttribPointer(GLuint indx, GLint size, GLenum type,
                              GLboolean normalized, GLsizei stride, GLintptr offset);
 
     void viewport(GLint x, GLint y, GLsizei width, GLsizei height);
 };
 
-[Exposed=(Window,Worker)]
 interface WebGLRenderingContext
 {
 };
 WebGLRenderingContext implements WebGLRenderingContextBase;
--- a/servo/components/script/dom/webidls/WebGLShader.webidl
+++ b/servo/components/script/dom/webidls/WebGLShader.webidl
@@ -1,11 +1,10 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 //
 // WebGL IDL definitions scraped from the Khronos specification:
 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.8
 //
 
-[Exposed=(Window,Worker)]
 interface WebGLShader : WebGLObject {
 };
--- a/servo/components/script/dom/webidls/WebGLShaderPrecisionFormat.webidl
+++ b/servo/components/script/dom/webidls/WebGLShaderPrecisionFormat.webidl
@@ -1,14 +1,13 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 //
 // WebGL IDL definitions scraped from the Khronos specification:
 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.7
 //
 
-[Exposed=(Window,Worker)]
 interface WebGLShaderPrecisionFormat {
     readonly attribute GLint rangeMin;
     readonly attribute GLint rangeMax;
     readonly attribute GLint precision;
 };
--- a/servo/components/script/dom/webidls/WebGLTexture.webidl
+++ b/servo/components/script/dom/webidls/WebGLTexture.webidl
@@ -1,11 +1,10 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 //
 // WebGL IDL definitions scraped from the Khronos specification:
 // https://www.khronos.org/registry/webgl/specs/latest/#5.9
 //
 
-[Exposed=(Window,Worker)]
 interface WebGLTexture : WebGLObject {
 };
--- a/servo/components/script/dom/webidls/WebGLUniformLocation.webidl
+++ b/servo/components/script/dom/webidls/WebGLUniformLocation.webidl
@@ -1,11 +1,10 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 //
 // WebGL IDL definitions scraped from the Khronos specification:
 // https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.10
 //
 
-[Exposed=(Window,Worker)]
 interface WebGLUniformLocation {
 };