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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceGradient.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/layout/svg/LayoutSVGResourceGradient.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceGradient.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceGradient.cpp
index 08194eb2308a45b9f68076f451687fcbd2b45841..de3646c58a3195f7f77d256807fc5f6c77a3b426 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceGradient.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceGradient.cpp
@@ -79,7 +79,7 @@ SVGPaintServer LayoutSVGResourceGradient::preparePaintServer(
return SVGPaintServer::invalid();
std::unique_ptr<GradientData>& gradientData =
- m_gradientMap.add(&object, nullptr).storedValue->value;
+ m_gradientMap.insert(&object, nullptr).storedValue->value;
if (!gradientData)
gradientData = WTF::wrapUnique(new GradientData);

Powered by Google App Engine
This is Rietveld 408576698