fixing code that relied on implicit string construction

git-svn-id: svn://10.0.0.236/trunk@76727 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scc%mozilla.org
2000-08-19 22:23:46 +00:00
parent 38c09c8e82
commit a0a2b1b7fe
30 changed files with 44 additions and 42 deletions

View File

@@ -1051,10 +1051,11 @@ nsObjectFrame::IsHidden() const
// Yes, these are really the kooky ways that you could tell 4.x
// not to hide the <embed> once you'd put the 'hidden' attribute
// on the tag...
// these |NS_ConvertASCIItoUCS2|s can't be |NS_LITERAL_STRING|s until |EqualsIgnoreCase| get's fixed
if (hidden.Length() &&
! hidden.EqualsIgnoreCase(NS_LITERAL_STRING("false")) &&
! hidden.EqualsIgnoreCase(NS_LITERAL_STRING("no")) &&
! hidden.EqualsIgnoreCase(NS_LITERAL_STRING("off"))) {
! hidden.EqualsIgnoreCase(NS_ConvertASCIItoUCS2("false")) &&
! hidden.EqualsIgnoreCase(NS_ConvertASCIItoUCS2("no")) &&
! hidden.EqualsIgnoreCase(NS_ConvertASCIItoUCS2("off"))) {
// The <embed> or <applet> is hidden.
return PR_TRUE;
}