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

Unified Diff: third_party/WebKit/Source/core/paint/BoxPaintInvalidator.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/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;

Powered by Google App Engine
This is Rietveld 408576698