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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.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/page/scrolling/ScrollingCoordinator.cpp
diff --git a/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp b/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
index feeddc1a5f29dfd8f27462341ba249e2b6eb950f..b32feec3fc12bd33516f86f21e7ccee499324044 100644
--- a/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
@@ -660,7 +660,7 @@ static void projectRectsToGraphicsLayerSpace(
for (const auto& layerRect : layerRects) {
const PaintLayer* layer = layerRect.key;
do {
- if (!layersWithRects.add(layer).isNewEntry)
+ if (!layersWithRects.insert(layer).isNewEntry)
break;
if (layer->parent()) {
@@ -735,7 +735,7 @@ void ScrollingCoordinator::setTouchEventTargetRects(
layerRect.key
->enclosingLayerForPaintInvalidationCrossingFrameBoundaries();
DCHECK(compositedLayer);
- m_layersWithTouchRects.add(compositedLayer);
+ m_layersWithTouchRects.insert(compositedLayer);
}
}

Powered by Google App Engine
This is Rietveld 408576698