"ImageTitleWithDimesions",
"ImageTitleWithDimensions",
nsImageDocument::UpdateTitleAndCharset(){  nsCAutoString typeStr;  nsCOMPtr<imgIRequest> imageRequest;  nsCOMPtr<nsIImageLoadingContent> imageLoader = do_QueryInterface(mImageContent);  if (imageLoader) {    imageLoader->GetRequest(nsIImageLoadingContent::CURRENT_REQUEST,                            getter_AddRefs(imageRequest));  }      if (imageRequest) {    nsXPIDLCString mimeType;    imageRequest->GetMimeType(getter_Copies(mimeType));    ToUpperCase(mimeType);    nsXPIDLCString::const_iterator start, end;    mimeType.BeginReading(start);    mimeType.EndReading(end);    nsXPIDLCString::const_iterator iter = end;    if (FindInReadable(NS_LITERAL_CSTRING("IMAGE/"), start, iter) &&         iter != end) {      // strip out "X-" if any      if (*iter == 'X') {        ++iter;        if (iter != end && *iter == '-') {          ++iter;          if (iter == end) {            // looks like "IMAGE/X-" is the type??  Bail out of here.            mimeType.BeginReading(iter);          }        } else {          --iter;        }      }      typeStr = Substring(iter, end);    } else {      typeStr = mimeType;    }  }  nsXPIDLString status;  if (mImageIsResized) {    nsAutoString ratioStr;    ratioStr.AppendInt(NSToCoordFloor(GetRatio() * 100));    const PRUnichar* formatString[1] = { ratioStr.get() };    mStringBundle->FormatStringFromName(NS_LITERAL_STRING("ScaledImage").get(),                                        formatString, 1,                                        getter_Copies(status));  }  static const char* const formatNames[4] =   {    "ImageTitleWithNeitherDimensionsNorFile",    "ImageTitleWithoutDimensions",    "ImageTitleWithDimesions",    "ImageTitleWithDimensionsAndFile",  };  nsMediaDocument::UpdateTitleAndCharset(typeStr, formatNames,                                         mImageWidth, mImageHeight, status);}