Bug 226439. Convert Seamonkey to EqualsLiteral. rs=darin

This commit is contained in:
roc+@cs.cmu.edu
2004-05-22 22:15:22 +00:00
parent 5a2b2f32f4
commit 6b0210f601
141 changed files with 601 additions and 601 deletions

View File

@@ -199,7 +199,7 @@ nsXMLContentSink::WillBuildModel(void)
if (mPrettyPrintXML) {
nsAutoString command;
mParser->GetCommand(command);
if (!command.Equals(NS_LITERAL_STRING("view"))) {
if (!command.EqualsLiteral("view")) {
mPrettyPrintXML = PR_FALSE;
}
}
@@ -1328,7 +1328,7 @@ nsXMLContentSink::HandleProcessingInstruction(const PRUnichar *aTarget,
nsAutoString type;
nsParserUtils::GetQuotedAttributeValue(data, NS_LITERAL_STRING("type"), type);
if (mState == eXMLContentSinkState_InProlog &&
target.Equals(NS_LITERAL_STRING("xml-stylesheet")) &&
target.EqualsLiteral("xml-stylesheet") &&
!type.EqualsIgnoreCase("text/css")) {
nsAutoString href, title, media, alternate;
@@ -1346,7 +1346,7 @@ nsXMLContentSink::HandleProcessingInstruction(const PRUnichar *aTarget,
nsParserUtils::GetQuotedAttributeValue(data, NS_LITERAL_STRING("alternate"), alternate);
result = ProcessStyleLink(node, href, alternate.Equals(NS_LITERAL_STRING("yes")),
result = ProcessStyleLink(node, href, alternate.EqualsLiteral("yes"),
title, type, media);
}
}