static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID); if (nsnull == aInstancePtr) {
if (NULL == aInstancePtrResult) {
nsDOMImplementation::QueryInterface(REFNSIID aIID, void** aInstancePtr){  static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);  if (nsnull == aInstancePtr) {    return NS_ERROR_NULL_POINTER;  }  if (aIID.Equals(kIDOMDOMImplementationIID)) {    nsIDOMDOMImplementation* tmp = this;    *aInstancePtr = (void*) tmp;    NS_ADDREF_THIS();    return NS_OK;  }  if (aIID.Equals(kIScriptObjectOwnerIID)) {    nsIScriptObjectOwner* tmp = this;    *aInstancePtr = (void*) tmp;    NS_ADDREF_THIS();    return NS_OK;  }  if (aIID.Equals(kISupportsIID)) {    nsIDOMDOMImplementation* tmp = this;    nsISupports* tmp2 = tmp;    *aInstancePtr = (void*) tmp2;    NS_ADDREF_THIS();    return NS_OK;  }  return NS_NOINTERFACE;}