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; |
} |
} |