if (aIID.Equals(NS_GET_IID(nsIImageControlFrame))) { *aInstancePtr = (void*) ((nsIImageControlFrame*) this); return NS_OK; }
nsImageControlFrame::QueryInterface(const nsIID& aIID, void** aInstancePtr){  NS_PRECONDITION(0 != aInstancePtr, "null ptr");  if (NULL == aInstancePtr) {    return NS_ERROR_NULL_POINTER;  }  if (aIID.Equals(NS_GET_IID(nsIFormControlFrame))) {    *aInstancePtr = (void*) ((nsIFormControlFrame*) this);    return NS_OK;  }   return nsImageControlFrameSuper::QueryInterface(aIID, aInstancePtr);}