зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1246846
(part 1) - Avoid nsTHashtable::RawRemoveEntry() in dom/. r=bz.
This assumes that it's safe to possibly shrink the tables after the removal, i.e. there are no surprising subtleties with how these tables are managed. --HG-- extra : rebase_source : 2012becaa759d4330910534375b7ac2a9839fe50
This commit is contained in:
Родитель
462eb9a0d4
Коммит
8c78eddc4e
|
@ -219,7 +219,7 @@ ShadowRoot::RemoveFromIdTable(Element* aElement, nsIAtom* aId)
|
|||
if (entry) {
|
||||
entry->RemoveIdElement(aElement);
|
||||
if (entry->IsEmpty()) {
|
||||
mIdentifierMap.RawRemoveEntry(entry);
|
||||
mIdentifierMap.RemoveEntry(entry);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3003,7 +3003,7 @@ nsDocument::RemoveFromIdTable(Element *aElement, nsIAtom* aId)
|
|||
++mExpandoAndGeneration.generation;
|
||||
}
|
||||
if (entry->IsEmpty()) {
|
||||
mIdentifierMap.RawRemoveEntry(entry);
|
||||
mIdentifierMap.RemoveEntry(entry);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1832,7 +1832,7 @@ XULDocument::RemoveElementFromRefMap(Element* aElement)
|
|||
if (!entry)
|
||||
return;
|
||||
if (entry->RemoveElement(aElement)) {
|
||||
mRefMap.RawRemoveEntry(entry);
|
||||
mRefMap.RemoveEntry(entry);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче