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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (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/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 f53f15cdeff6d9e7f4b9e1377cd9b8c91c556ab3..230f1c64207190f4bbb879ecdfdca8a32d185b94 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