if (aIID.Equals(nsIJVMPluginTagInfo::GetIID())) { *aInstancePtrResult = (void *)((nsIJVMPluginTagInfo *)this); AddRef(); return NS_OK; }  if (aIID.Equals(nsIEventListener::GetIID())) { *aInstancePtrResult = (void *)((nsIEventListener *)this); AddRef(); return NS_OK; }  if (aIID.Equals(nsITimerCallback::GetIID())) { *aInstancePtrResult = (void *)((nsITimerCallback *)this); AddRef(); return NS_OK; }  if (aIID.Equals(kISupportsIID)) { *aInstancePtrResult = (void *)((nsISupports *)((nsIPluginTagInfo *)this)); AddRef(); return NS_OK; }
nsObjectFrame::QueryInterface(const nsIID& aIID, void** aInstancePtr){  NS_ENSURE_ARG_POINTER(aInstancePtr);  *aInstancePtr = nsnull;#ifdef DEBUG  if (aIID.Equals(NS_GET_IID(nsIFrameDebug))) {    *aInstancePtr = NS_STATIC_CAST(nsIFrameDebug*,this);    return NS_OK;  }#endif  if (aIID.Equals(NS_GET_IID(nsIObjectFrame))) {    *aInstancePtr = NS_STATIC_CAST(nsIObjectFrame*,this);    return NS_OK;  } else if (aIID.Equals(NS_GET_IID(nsIFrame))) {    *aInstancePtr = NS_STATIC_CAST(nsIFrame*,this);    return NS_OK;  } else if (aIID.Equals(NS_GET_IID(nsISupports))) {    *aInstancePtr = NS_STATIC_CAST(nsIObjectFrame*,this);    return NS_OK;  }  return NS_NOINTERFACE;}