mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-09 13:25:00 +00:00
just one theory on the Ts slowdown, before I back myself out completely
This commit is contained in:
parent
668729c96d
commit
3cb283cc78
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user