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

Unified Diff: third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.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/modules/csspaint/PaintWorkletGlobalScope.cpp
diff --git a/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp b/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp
index b3e670d1e47045c4272e0ec199a9d78561de210d..5836b132fa088c0e516184d9ab03338445434abf 100644
--- a/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp
+++ b/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp
@@ -209,7 +209,7 @@ void PaintWorkletGlobalScope::addPendingGenerator(
const String& name,
CSSPaintImageGeneratorImpl* generator) {
Member<GeneratorHashSet>& set =
- m_pendingGenerators.add(name, nullptr).storedValue->value;
+ m_pendingGenerators.insert(name, nullptr).storedValue->value;
if (!set)
set = new GeneratorHashSet;
set->insert(generator);

Powered by Google App Engine
This is Rietveld 408576698