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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user