Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(718)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlock.cpp

Issue 2673543003: Migrate WTF::HashMap::remove() to ::erase() (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutBlock.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
index c7f0f27d3ead0f40e91f6733e82661342a58b769..8d111bb57d37d7b494d39004698e14fae44abb4b 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -112,7 +112,7 @@ void LayoutBlock::removeFromGlobalMaps() {
ASSERT(!descendants->isEmpty());
for (LayoutBox* descendant : *descendants) {
ASSERT(gPositionedContainerMap->get(descendant) == this);
- gPositionedContainerMap->remove(descendant);
+ gPositionedContainerMap->erase(descendant);
}
}
if (hasPercentHeightDescendants()) {
@@ -1012,7 +1012,7 @@ void LayoutBlock::removePositionedObject(LayoutBox* o) {
ASSERT(positionedDescendants && positionedDescendants->contains(o));
positionedDescendants->remove(o);
if (positionedDescendants->isEmpty()) {
- gPositionedDescendantsMap->remove(container);
+ gPositionedDescendantsMap->erase(container);
container->m_hasPositionedObjects = false;
}
}
@@ -1072,10 +1072,10 @@ void LayoutBlock::removePositionedObjects(
for (auto object : deadObjects) {
ASSERT(gPositionedContainerMap->get(object) == this);
positionedDescendants->remove(object);
- gPositionedContainerMap->remove(object);
+ gPositionedContainerMap->erase(object);
}
if (positionedDescendants->isEmpty()) {
- gPositionedDescendantsMap->remove(this);
+ gPositionedDescendantsMap->erase(this);
m_hasPositionedObjects = false;
}
}
@@ -1108,7 +1108,7 @@ void LayoutBlock::removePercentHeightDescendant(LayoutBox* descendant) {
descendants->remove(descendant);
descendant->setPercentHeightContainer(nullptr);
if (descendants->isEmpty()) {
- gPercentHeightDescendantsMap->remove(this);
+ gPercentHeightDescendantsMap->erase(this);
m_hasPercentHeightDescendants = false;
}
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/ImageQualityController.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698