mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 956475 - Use atoms efficiently in ForEachPing; r=smaug
This commit is contained in:
parent
65bd3f60cd
commit
b7905089f1
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user