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);
if (aIID.Equals(nsIPluginTagInfo::GetIID()) || aIID.Equals(nsIPluginTagInfo2::GetIID())) { *aInstancePtrResult = (void *)((nsIPluginTagInfo2 *)this); AddRef();
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;}