nsresult result; nsIImageFrame* imageFrame;
if (!mCurrentRequest) { return NS_OK; }
nsHTMLImageElement::GetComplete(PRBool* aComplete){  NS_ENSURE_ARG_POINTER(aComplete);  *aComplete = PR_FALSE;  nsresult result;  nsIImageFrame* imageFrame;  GetImageFrame(&imageFrame);  if (imageFrame) {    result = imageFrame->IsImageComplete(aComplete);  } else {    result = NS_OK;    *aComplete = !mRequest;  }  return NS_OK;}