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

Unified Diff: third_party/WebKit/Source/core/css/CSSImageGeneratorValue.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/css/CSSImageGeneratorValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp b/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp
index 07b6c0c7c9877ed2132ef375c17f947753b9db4a..2a5d0843e8f98c9ec3b932434722a2107db8a945 100644
--- a/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp
@@ -75,11 +75,11 @@ void CSSImageGeneratorValue::removeClient(const LayoutObject* layoutObject) {
if (!size.isEmpty()) {
m_sizes.remove(size);
if (!m_sizes.contains(size))
- m_images.remove(size);
+ m_images.erase(size);
}
if (!--sizeCount.count)
- m_clients.remove(layoutObject);
+ m_clients.erase(layoutObject);
if (m_clients.isEmpty()) {
ASSERT(m_keepAlive);
« no previous file with comments | « third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp ('k') | third_party/WebKit/Source/core/css/CSSStyleRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698