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

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

Issue 2725063003: Migrate WTF::LinkedHashSet/ListHashSet/HashTable::remove() to ::erase() (Closed)
Patch Set: rebase Created 3 years, 9 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 7aa6ac9b9597bf7be00230dd6c2fce164c8098bc..dc258c4535c16784f04f72d00c3e8870d243d211 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -1030,7 +1030,7 @@ void LayoutBlock::removePositionedObject(LayoutBox* o) {
TrackedLayoutBoxListHashSet* positionedDescendants =
gPositionedDescendantsMap->at(container);
ASSERT(positionedDescendants && positionedDescendants->contains(o));
- positionedDescendants->remove(o);
+ positionedDescendants->erase(o);
if (positionedDescendants->isEmpty()) {
gPositionedDescendantsMap->erase(container);
container->m_hasPositionedObjects = false;
@@ -1096,7 +1096,7 @@ void LayoutBlock::removePositionedObjects(
for (auto object : deadObjects) {
ASSERT(gPositionedContainerMap->at(object) == this);
- positionedDescendants->remove(object);
+ positionedDescendants->erase(object);
gPositionedContainerMap->erase(object);
}
if (positionedDescendants->isEmpty()) {
@@ -1130,7 +1130,7 @@ void LayoutBlock::addPercentHeightDescendant(LayoutBox* descendant) {
void LayoutBlock::removePercentHeightDescendant(LayoutBox* descendant) {
if (TrackedLayoutBoxListHashSet* descendants = percentHeightDescendants()) {
- descendants->remove(descendant);
+ descendants->erase(descendant);
descendant->setPercentHeightContainer(nullptr);
if (descendants->isEmpty()) {
gPercentHeightDescendantsMap->erase(this);

Powered by Google App Engine
This is Rietveld 408576698