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

Unified Diff: third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp

Issue 2799573003: Migrate WTF::HashCountedSet::remove() to ::erase() (Closed)
Patch Set: Created 3 years, 8 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 d6f7a9dcac1f35c518fa249e340df6068ed6b44a..0c0ae5cfa0fd6535f913346d17c37923a6628541 100644
--- a/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp
@@ -73,7 +73,7 @@ void CSSImageGeneratorValue::removeClient(const LayoutObject* layoutObject) {
SizeAndCount& sizeCount = it->value;
IntSize size = sizeCount.size;
if (!size.isEmpty()) {
- m_sizes.remove(size);
+ m_sizes.erase(size);
if (!m_sizes.contains(size))
m_images.erase(size);
}

Powered by Google App Engine
This is Rietveld 408576698