if (NS_CONTENT_ATTR_NOT_THERE ==  mInner.GetAttribute(kNameSpaceID_None, nsHTMLAtoms::height, aValue)) { nsImageFrame* imageFrame;  result = GetImageFrame(&imageFrame); if (NS_SUCCEEDED(result)) { nsSize size; imageFrame->GetIntrinsicImageSize(size); aValue.AppendInt(size.height);
nsImageFrame* imageFrame;  nsresult rv = GetImageFrame(&imageFrame);  if (NS_SUCCEEDED(rv) && imageFrame) { nsSize size; imageFrame->GetSize(size);  nsCOMPtr<nsIPresContext> context; rv = nsGenericHTMLElement::GetPresContext(this, getter_AddRefs(context));  if (NS_SUCCEEDED(rv) && context) { float t2p; context->GetTwipsToPixels(&t2p);  *aHeight = NSTwipsToIntPixels(size.height, t2p);
nsHTMLImageElement::GetHeight(nsString& aValue){  nsresult result;  if (NS_CONTENT_ATTR_NOT_THERE ==  mInner.GetAttribute(kNameSpaceID_None, nsHTMLAtoms::height, aValue)) {    nsImageFrame* imageFrame;        result = GetImageFrame(&imageFrame);    if (NS_SUCCEEDED(result)) {      nsSize size;      imageFrame->GetIntrinsicImageSize(size);      aValue.AppendInt(size.height);    }  }  return NS_OK;}