just one theory on the Ts slowdown, before I back myself out completely

This commit is contained in:
alecf%netscape.com 2003-03-21 13:31:34 +00:00
parent 668729c96d
commit 3cb283cc78
2 changed files with 8 additions and 6 deletions

View File

@ -1569,9 +1569,10 @@ static PRBool IsTreePseudoElement(const nsString& aPseudo)
static PRBool IsTreePseudoElement(nsIAtom* aPseudo)
{
nsAutoString str;
aPseudo->ToString(str);
return Substring(str, 0, 11).Equals(NS_LITERAL_STRING(":-moz-tree-"));
const char* str;
aPseudo->GetUTF8String(&str);
static const char moz_tree[] = ":moz-tree-";
return nsCRT::strncmp(str, moz_tree, sizeof(moz_tree)-1) == 0;
}
#endif

View File

@ -1569,9 +1569,10 @@ static PRBool IsTreePseudoElement(const nsString& aPseudo)
static PRBool IsTreePseudoElement(nsIAtom* aPseudo)
{
nsAutoString str;
aPseudo->ToString(str);
return Substring(str, 0, 11).Equals(NS_LITERAL_STRING(":-moz-tree-"));
const char* str;
aPseudo->GetUTF8String(&str);
static const char moz_tree[] = ":moz-tree-";
return nsCRT::strncmp(str, moz_tree, sizeof(moz_tree)-1) == 0;
}
#endif