Bug 956475 - Use atoms efficiently in ForEachPing; r=smaug

This commit is contained in:
Ms2ger 2014-01-20 08:58:25 +01:00
parent 65bd3f60cd
commit b7905089f1

View File

@ -334,8 +334,7 @@ ForEachPing(nsIContent *content, ForEachPingCallback callback, void *closure)
if (!content->IsHTML())
return;
nsIAtom *nameAtom = content->Tag();
if (!nameAtom->Equals(NS_LITERAL_STRING("a")) &&
!nameAtom->Equals(NS_LITERAL_STRING("area")))
if (nameAtom != nsGkAtoms::a && nameAtom != nsGkAtoms::area)
return;
nsCOMPtr<nsIAtom> pingAtom = do_GetAtom("ping");