if (!mimeType.IsEmpty() && !mimeType.EqualsIgnoreCase("text/css")) {
if (!mimeType.IsEmpty() && !mimeType.LowerCaseEqualsLiteral("text/css")) {
nsHTMLLinkElement::GetStyleSheetInfo(nsAString& aTitle,                                     nsAString& aType,                                     nsAString& aMedia,                                     PRBool* aIsAlternate){  aTitle.Truncate();  aType.Truncate();  aMedia.Truncate();  *aIsAlternate = PR_FALSE;  nsAutoString rel;  nsStringArray linkTypes(4);  GetAttr(kNameSpaceID_None, nsHTMLAtoms::rel, rel);  nsStyleLinkElement::ParseLinkTypes(rel, linkTypes);  // Is it a stylesheet link?  if (linkTypes.IndexOf(NS_LITERAL_STRING("stylesheet")) < 0) {    return;  }  nsAutoString title;  GetAttr(kNameSpaceID_None, nsHTMLAtoms::title, title);  title.CompressWhitespace();  aTitle.Assign(title);  // If alternate, does it have title?  if (-1 != linkTypes.IndexOf(NS_LITERAL_STRING("alternate"))) {    if (aTitle.IsEmpty()) { // alternates must have title      return;    } else {      *aIsAlternate = PR_TRUE;    }  }  GetAttr(kNameSpaceID_None, nsHTMLAtoms::media, aMedia);  ToLowerCase(aMedia); // HTML4.0 spec is inconsistent, make it case INSENSITIVE  nsAutoString mimeType;  nsAutoString notUsed;  GetAttr(kNameSpaceID_None, nsHTMLAtoms::type, aType);  nsParserUtils::SplitMimeType(aType, mimeType, notUsed);  if (!mimeType.IsEmpty() && !mimeType.EqualsIgnoreCase("text/css")) {    return;  }  // If we get here we assume that we're loading a css file, so set the  // type to 'text/css'  aType.Assign(NS_LITERAL_STRING("text/css"));  return;}