зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1174631 (part 4) - Replace nsFrameManager's uses of PL_DHashTableEnumerate() with PLDHashTable::Iterator. r=dholbert.
--HG-- extra : rebase_source : a328e9bceffb9940108fdebca8cca7c70e9cea58
This commit is contained in:
Родитель
4bcd16152c
Коммит
0eacf28b46
|
@ -203,19 +203,13 @@ nsFrameManager::UnregisterPlaceholderFrame(nsPlaceholderFrame* aPlaceholderFrame
|
|||
aPlaceholderFrame->GetOutOfFlowFrame());
|
||||
}
|
||||
|
||||
static PLDHashOperator
|
||||
UnregisterPlaceholders(PLDHashTable* table, PLDHashEntryHdr* hdr,
|
||||
uint32_t number, void* arg)
|
||||
{
|
||||
PlaceholderMapEntry* entry = static_cast<PlaceholderMapEntry*>(hdr);
|
||||
entry->placeholderFrame->SetOutOfFlowFrame(nullptr);
|
||||
return PL_DHASH_NEXT;
|
||||
}
|
||||
|
||||
void
|
||||
nsFrameManager::ClearPlaceholderFrameMap()
|
||||
{
|
||||
PL_DHashTableEnumerate(&mPlaceholderMap, UnregisterPlaceholders, nullptr);
|
||||
for (auto iter = mPlaceholderMap.Iter(); !iter.Done(); iter.Next()) {
|
||||
auto entry = static_cast<PlaceholderMapEntry*>(iter.Get());
|
||||
entry->placeholderFrame->SetOutOfFlowFrame(nullptr);
|
||||
}
|
||||
mPlaceholderMap.Clear();
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче