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

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

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (Closed)
Patch Set: rebase, add TODOs Created 3 years, 10 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 2a5d0843e8f98c9ec3b932434722a2107db8a945..b934557d3ba76db0fa77503f270b973eb75b35d5 100644
--- a/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSImageGeneratorValue.cpp
@@ -51,7 +51,7 @@ void CSSImageGeneratorValue::addClient(const LayoutObject* layoutObject,
LayoutObjectSizeCountMap::iterator it = m_clients.find(layoutObject);
if (it == m_clients.end()) {
- m_clients.add(layoutObject, SizeAndCount(size, 1));
+ m_clients.insert(layoutObject, SizeAndCount(size, 1));
} else {
SizeAndCount& sizeCount = it->value;
++sizeCount.count;
@@ -109,7 +109,7 @@ Image* CSSImageGeneratorValue::getImage(const LayoutObject* layoutObject,
void CSSImageGeneratorValue::putImage(const IntSize& size,
PassRefPtr<Image> image) {
- m_images.add(size, std::move(image));
+ m_images.insert(size, std::move(image));
}
PassRefPtr<Image> CSSImageGeneratorValue::image(
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSFontFaceSource.cpp ('k') | third_party/WebKit/Source/core/css/CSSSegmentedFontFace.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698