Index: third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp |
diff --git a/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp |
index 80e40f9122afe4761cd275c7a48874ef15a59594..bb16faecec1302c18cffe558fa493453645c439f 100644 |
--- a/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp |
+++ b/third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp |
@@ -32,7 +32,7 @@ void BoxPaintInvalidator::boxWillBeDestroyed(const LayoutBox& box) { |
DCHECK(box.hasPreviousBoxGeometries() == |
previousBoxGeometriesMap().contains(&box)); |
if (box.hasPreviousBoxGeometries()) |
- previousBoxGeometriesMap().remove(&box); |
+ previousBoxGeometriesMap().erase(&box); |
} |
static LayoutRect computeRightDelta(const LayoutPoint& location, |
@@ -346,7 +346,7 @@ void BoxPaintInvalidator::savePreviousBoxGeometriesIfNeeded() { |
previousBoxGeometriesMap().contains(&m_box)); |
if (!needsToSavePreviousBoxGeometries()) { |
if (m_box.hasPreviousBoxGeometries()) { |
- previousBoxGeometriesMap().remove(&m_box); |
+ previousBoxGeometriesMap().erase(&m_box); |
m_box.getMutableForPainting().setHasPreviousBoxGeometries(false); |
} |
return; |