Bug 637807 - Use GetEntry on the ID hashtable in nsDocument::LookupImageElement; r=bzbarsky

This commit is contained in:
Ehsan Akhgari 2011-03-02 13:57:33 -08:00
parent fb4cc4b7ca
commit 09768e31c2

View File

@ -4124,7 +4124,7 @@ nsDocument::LookupImageElement(const nsAString& aId)
if (aId.IsEmpty())
return nsnull;
nsIdentifierMapEntry *entry = mIdentifierMap.PutEntry(aId);
nsIdentifierMapEntry *entry = mIdentifierMap.GetEntry(aId);
return entry ? entry->GetImageIdElement() : nsnull;
}