mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 06:05:44 +00:00
Bug 637807 - Use GetEntry on the ID hashtable in nsDocument::LookupImageElement; r=bzbarsky
This commit is contained in:
parent
fb4cc4b7ca
commit
09768e31c2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user