From 9470b7d5d2ed10a7faa994509be22bdf11b3c7b6 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Wed, 3 Oct 2012 17:13:05 -0400 Subject: [PATCH] Bug 779611 - part 2 - drop old bindings for WebGLUniformLocation - r=bz --- content/canvas/src/WebGLContext.cpp | 19 ++----------------- content/canvas/src/WebGLContext.h | 3 +-- dom/base/nsDOMClassInfo.cpp | 7 ------- dom/base/nsDOMClassInfoClasses.h | 1 - .../canvas/nsIDOMWebGLRenderingContext.idl | 6 ------ js/xpconnect/src/dom_quickstubs.qsconf | 1 - 6 files changed, 3 insertions(+), 34 deletions(-) diff --git a/content/canvas/src/WebGLContext.cpp b/content/canvas/src/WebGLContext.cpp index a9b88505beb..3ca814209f3 100644 --- a/content/canvas/src/WebGLContext.cpp +++ b/content/canvas/src/WebGLContext.cpp @@ -1451,15 +1451,13 @@ NS_INTERFACE_MAP_BEGIN(WebGLRenderbuffer) NS_DOM_INTERFACE_MAP_ENTRY_CLASSINFO(WebGLRenderbuffer) NS_INTERFACE_MAP_END +// WebGLUniformLocation + NS_IMPL_ADDREF(WebGLUniformLocation) NS_IMPL_RELEASE(WebGLUniformLocation) -DOMCI_DATA(WebGLUniformLocation, WebGLUniformLocation) - NS_INTERFACE_MAP_BEGIN(WebGLUniformLocation) - NS_INTERFACE_MAP_ENTRY(nsIWebGLUniformLocation) NS_INTERFACE_MAP_ENTRY(nsISupports) - NS_DOM_INTERFACE_MAP_ENTRY_CLASSINFO(WebGLUniformLocation) NS_INTERFACE_MAP_END JSObject* @@ -1525,19 +1523,6 @@ NS_IMPL_CYCLE_COLLECTING_RELEASE(WebGLExtension) DOMCI_DATA(WebGLExtension, WebGLExtension) -/* [noscript] attribute WebGLint location; */ -NS_IMETHODIMP -WebGLUniformLocation::GetLocation(WebGLint *aLocation) -{ - return NS_ERROR_NOT_IMPLEMENTED; -} - -NS_IMETHODIMP -WebGLUniformLocation::SetLocation(WebGLint aLocation) -{ - return NS_ERROR_NOT_IMPLEMENTED; -} - /* readonly attribute WebGLint size; */ NS_IMETHODIMP WebGLActiveInfo::GetSize(WebGLint *aSize) diff --git a/content/canvas/src/WebGLContext.h b/content/canvas/src/WebGLContext.h index 84a18217f69..896106a08a7 100644 --- a/content/canvas/src/WebGLContext.h +++ b/content/canvas/src/WebGLContext.h @@ -3000,7 +3000,7 @@ public: }; class WebGLUniformLocation MOZ_FINAL - : public nsIWebGLUniformLocation + : public nsISupports , public WebGLContextBoundObject { public: @@ -3031,7 +3031,6 @@ public: virtual JSObject* WrapObject(JSContext *cx, JSObject *scope); NS_DECL_ISUPPORTS - NS_DECL_NSIWEBGLUNIFORMLOCATION protected: // nsRefPtr, not WebGLRefPtr, so that we don't prevent the program from being explicitly deleted. // we just want to avoid having a dangling pointer. diff --git a/dom/base/nsDOMClassInfo.cpp b/dom/base/nsDOMClassInfo.cpp index 88c3ec5721f..2ab86134d3e 100644 --- a/dom/base/nsDOMClassInfo.cpp +++ b/dom/base/nsDOMClassInfo.cpp @@ -1567,9 +1567,6 @@ static nsDOMClassInfoData sClassInfoData[] = { DOM_DEFAULT_SCRIPTABLE_FLAGS) NS_DEFINE_CLASSINFO_DATA(WebGLRenderbuffer, nsDOMGenericSH, DOM_DEFAULT_SCRIPTABLE_FLAGS) - NS_DEFINE_CLASSINFO_DATA(WebGLUniformLocation, - nsNewDOMBindingNoWrapperCacheSH, - DOM_DEFAULT_SCRIPTABLE_FLAGS) NS_DEFINE_CLASSINFO_DATA(WebGLActiveInfo, nsDOMGenericSH, DOM_DEFAULT_SCRIPTABLE_FLAGS) NS_DEFINE_CLASSINFO_DATA(WebGLExtension, WebGLExtensionSH, @@ -4258,10 +4255,6 @@ nsDOMClassInfo::Init() DOM_CLASSINFO_MAP_ENTRY(nsIWebGLRenderbuffer) DOM_CLASSINFO_MAP_END - DOM_CLASSINFO_MAP_BEGIN(WebGLUniformLocation, nsIWebGLUniformLocation) - DOM_CLASSINFO_MAP_ENTRY(nsIWebGLUniformLocation) - DOM_CLASSINFO_MAP_END - DOM_CLASSINFO_MAP_BEGIN(WebGLActiveInfo, nsIWebGLActiveInfo) DOM_CLASSINFO_MAP_ENTRY(nsIWebGLActiveInfo) DOM_CLASSINFO_MAP_END diff --git a/dom/base/nsDOMClassInfoClasses.h b/dom/base/nsDOMClassInfoClasses.h index e7298e1d0f3..ae683b89b11 100644 --- a/dom/base/nsDOMClassInfoClasses.h +++ b/dom/base/nsDOMClassInfoClasses.h @@ -453,7 +453,6 @@ DOMCI_CLASS(WebGLProgram) DOMCI_CLASS(WebGLShader) DOMCI_CLASS(WebGLFramebuffer) DOMCI_CLASS(WebGLRenderbuffer) -DOMCI_CLASS(WebGLUniformLocation) DOMCI_CLASS(WebGLActiveInfo) DOMCI_CLASS(WebGLExtension) DOMCI_CLASS(WebGLExtensionStandardDerivatives) diff --git a/dom/interfaces/canvas/nsIDOMWebGLRenderingContext.idl b/dom/interfaces/canvas/nsIDOMWebGLRenderingContext.idl index 581fd146e08..394c7d3400a 100644 --- a/dom/interfaces/canvas/nsIDOMWebGLRenderingContext.idl +++ b/dom/interfaces/canvas/nsIDOMWebGLRenderingContext.idl @@ -95,12 +95,6 @@ interface nsIWebGLActiveInfo : nsISupports readonly attribute DOMString name; }; -[scriptable, builtinclass, uuid(d38b0467-623e-4c82-9140-5f14a3bd1bad)] -interface nsIWebGLUniformLocation : nsISupports -{ - [noscript] attribute WebGLint location; -}; - /* Base class for all WebGL extensions, and for those without * any additional tokens/methods. */ diff --git a/js/xpconnect/src/dom_quickstubs.qsconf b/js/xpconnect/src/dom_quickstubs.qsconf index ce74f3136b6..30a38ca4b50 100644 --- a/js/xpconnect/src/dom_quickstubs.qsconf +++ b/js/xpconnect/src/dom_quickstubs.qsconf @@ -469,7 +469,6 @@ irregularFilenames = { 'nsIWebGLFramebuffer': 'nsIDOMWebGLRenderingContext', 'nsIWebGLRenderbuffer': 'nsIDOMWebGLRenderingContext', 'nsIWebGLActiveInfo': 'nsIDOMWebGLRenderingContext', - 'nsIWebGLUniformLocation': 'nsIDOMWebGLRenderingContext', 'nsIWebGLExtension': 'nsIDOMWebGLRenderingContext', 'nsIWebGLExtensionStandardDerivatives' : 'nsIDOMWebGLRenderingContext', 'nsIWebGLExtensionTextureFilterAnisotropic' : 'nsIDOMWebGLRenderingContext',