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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintController.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/platform/graphics/paint/PaintController.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp b/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
index 7e37c3118f5265bf103aa2434f1e4e80a6a78170..4a16014f248a87963353f93f50458623bafdf2d3 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
@@ -313,7 +313,7 @@ void PaintController::addItemToIndexIfNeeded(
Vector<size_t>& indices =
it == displayItemIndicesByClient.end()
? displayItemIndicesByClient
- .add(&displayItem.client(), Vector<size_t>())
+ .insert(&displayItem.client(), Vector<size_t>())
.storedValue->value
: it->value;
indices.push_back(index);
@@ -646,7 +646,7 @@ void PaintController::generateChunkRasterInvalidationRects(
Vector<size_t>& indices =
it == m_outOfOrderChunkIndices.end()
? m_outOfOrderChunkIndices
- .add(&oldChunk.id->client, Vector<size_t>())
+ .insert(&oldChunk.id->client, Vector<size_t>())
.storedValue->value
: it->value;
indices.push_back(m_nextChunkToMatch);

Powered by Google App Engine
This is Rietveld 408576698