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

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

Issue 2759703002: Migrate WTF::HashMap::remove() to ::erase() (Closed)
Patch Set: rebase, fix one platform-specific reference 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/TextAutosizer.cpp
diff --git a/third_party/WebKit/Source/core/layout/TextAutosizer.cpp b/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
index 5bf36f3604b3b17730242ef81a5857cd0265ad11..6af316ab57cadee615a34793c2d5cd764c5fd363 100644
--- a/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
+++ b/third_party/WebKit/Source/core/layout/TextAutosizer.cpp
@@ -1238,7 +1238,7 @@ bool TextAutosizer::FingerprintMapper::remove(LayoutObject* layoutObject) {
BlockSet& blocks = *blocksIter->value;
blocks.erase(toLayoutBlock(layoutObject));
if (blocks.isEmpty()) {
- m_blocksForFingerprint.remove(blocksIter);
+ m_blocksForFingerprint.erase(blocksIter);
SuperclusterMap::iterator superclusterIter =
m_superclusters.find(fingerprint);
@@ -1246,7 +1246,7 @@ bool TextAutosizer::FingerprintMapper::remove(LayoutObject* layoutObject) {
if (superclusterIter != m_superclusters.end()) {
Supercluster* supercluster = superclusterIter->value.get();
m_potentiallyInconsistentSuperclusters.erase(supercluster);
- m_superclusters.remove(superclusterIter);
+ m_superclusters.erase(superclusterIter);
}
}
#if DCHECK_IS_ON()

Powered by Google App Engine
This is Rietveld 408576698