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
Родитель 395c19ce8c
Коммит b7bb5e49db
2 изменённых файлов: 8 добавлений и 6 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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