Bug 779611 - WebGL extensions should be [NoInterfaceObject] as their compliant IDL interface names would pollute the global object - r=bz

This commit is contained in:
Benoit Jacob 2012-10-11 14:23:34 -04:00
parent 07b8aa36d6
commit fe0a287cf4

View File

@ -776,21 +776,25 @@ interface WebGLContextEvent : Event {
// specific extension interfaces // specific extension interfaces
[NoInterfaceObject]
interface WebGLExtensionStandardDerivatives { interface WebGLExtensionStandardDerivatives {
const GLenum FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; const GLenum FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B;
}; };
[NoInterfaceObject]
interface WebGLExtensionLoseContext { interface WebGLExtensionLoseContext {
void loseContext(); void loseContext();
void restoreContext(); void restoreContext();
}; };
[NoInterfaceObject]
interface WebGLExtensionTextureFilterAnisotropic interface WebGLExtensionTextureFilterAnisotropic
{ {
const GLenum TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; const GLenum TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE;
const GLenum MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; const GLenum MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;
}; };
[NoInterfaceObject]
interface WebGLExtensionCompressedTextureS3TC interface WebGLExtensionCompressedTextureS3TC
{ {
const GLenum COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; const GLenum COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;
@ -799,6 +803,7 @@ interface WebGLExtensionCompressedTextureS3TC
const GLenum COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; const GLenum COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3;
}; };
[NoInterfaceObject]
interface WebGLExtensionCompressedTextureATC interface WebGLExtensionCompressedTextureATC
{ {
const GLenum COMPRESSED_RGB_ATC_WEBGL = 0x8C92; const GLenum COMPRESSED_RGB_ATC_WEBGL = 0x8C92;
@ -806,6 +811,7 @@ interface WebGLExtensionCompressedTextureATC
const GLenum COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE; const GLenum COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE;
}; };
[NoInterfaceObject]
interface WebGLExtensionCompressedTexturePVRTC interface WebGLExtensionCompressedTexturePVRTC
{ {
const GLenum COMPRESSED_RGB_PVRTC_4BPPV1 = 0x8C00; const GLenum COMPRESSED_RGB_PVRTC_4BPPV1 = 0x8C00;
@ -814,11 +820,13 @@ interface WebGLExtensionCompressedTexturePVRTC
const GLenum COMPRESSED_RGBA_PVRTC_2BPPV1 = 0x8C03; const GLenum COMPRESSED_RGBA_PVRTC_2BPPV1 = 0x8C03;
}; };
[NoInterfaceObject]
interface WebGLExtensionDepthTexture interface WebGLExtensionDepthTexture
{ {
const GLenum UNSIGNED_INT_24_8_WEBGL = 0x84FA; const GLenum UNSIGNED_INT_24_8_WEBGL = 0x84FA;
}; };
[NoInterfaceObject]
interface WebGLExtensionTextureFloat interface WebGLExtensionTextureFloat
{ {
}; };