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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintController.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/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 d01671376eb2b40f0b87852327598cdc732ac5d6..f53f15cdeff6d9e7f4b9e1377cd9b8c91c556ab3 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
@@ -732,7 +732,7 @@ void PaintController::generateChunkRasterInvalidationRectsComparingOldChunk(
clientToInvalidate = &oldItem.client();
}
if (clientToInvalidate &&
- invalidatedClientsInOldChunk.add(clientToInvalidate).isNewEntry) {
+ invalidatedClientsInOldChunk.insert(clientToInvalidate).isNewEntry) {
addRasterInvalidationInfo(
isPotentiallyInvalidClient ? nullptr : clientToInvalidate, newChunk,
FloatRect(m_currentPaintArtifact.getDisplayItemList().visualRect(
@@ -745,7 +745,7 @@ void PaintController::generateChunkRasterInvalidationRectsComparingOldChunk(
++newIndex) {
const DisplayItem& newItem = m_newDisplayItemList[newIndex];
if (newItem.drawsContent() && !clientCacheIsValid(newItem.client()) &&
- invalidatedClientsInNewChunk.add(&newItem.client()).isNewEntry) {
+ invalidatedClientsInNewChunk.insert(&newItem.client()).isNewEntry) {
addRasterInvalidationInfo(&newItem.client(), newChunk,
FloatRect(newItem.client().visualRect()));
}

Powered by Google App Engine
This is Rietveld 408576698