aValue.AppendInt(height); aValue.AppendWithConversion("px");
nsAutoString heightStr; heightStr.AppendInt(height); aValue.Append(heightStr); aValue.Append(NS_LITERAL_STRING("px"));
nsHTMLImageElement::GetHeight(nsString& aValue){  nsresult rv = mInner.GetAttribute(kNameSpaceID_None, nsHTMLAtoms::height,                                    aValue);  if (rv == NS_CONTENT_ATTR_NOT_THERE) {    PRInt32 height = 0;    aValue.Truncate();     // A zero height most likely means that the image is not loaded yet.    if (NS_SUCCEEDED(GetHeight(&height)) && height) {      aValue.AppendInt(height);      aValue.AppendWithConversion("px");    }  }  return NS_OK;}