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

Unified Diff: third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp

Issue 2657443005: Migrate WTF::HashSet::add() to ::insert() [part 1 of N] (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/html/canvas/CanvasRenderingContext.cpp
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
index 2ddfe27b909e4759d15e29fcb0e0e4f3733a9a88..d415f99fe1604ea00994d1fd1785ee94118de95e 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasRenderingContext.cpp
@@ -171,9 +171,9 @@ bool CanvasRenderingContext::wouldTaintOrigin(
if (hasURL) {
if (taintOrigin)
- m_dirtyURLs.add(sourceURL.getString());
+ m_dirtyURLs.insert(sourceURL.getString());
else
- m_cleanURLs.add(sourceURL.getString());
+ m_cleanURLs.insert(sourceURL.getString());
}
return taintOrigin;
}

Powered by Google App Engine
This is Rietveld 408576698