Fix brendan's nit for bug 299689, r+sr=brendan
git-svn-id: svn://10.0.0.236/trunk@179857 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -3035,7 +3035,11 @@ nsHTMLDocument::UpdateIdTableEntry(const nsAString& aId, nsIContent *aContent)
|
||||
PL_DHashTableOperate(&mIdAndNameHashTable, &aId,
|
||||
op));
|
||||
|
||||
if (entry && (liveTable || PL_DHASH_ENTRY_IS_BUSY(entry))) {
|
||||
if (!entry) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
if (PL_DHASH_ENTRY_IS_BUSY(entry)) {
|
||||
entry->mIdContent = aContent;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user