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

Unified Diff: third_party/WebKit/Source/core/page/TouchAdjustment.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/TouchAdjustment.cpp
diff --git a/third_party/WebKit/Source/core/page/TouchAdjustment.cpp b/third_party/WebKit/Source/core/page/TouchAdjustment.cpp
index 43dad53a6c02f8557589930d43fb647482e477c4..218b5a03408b9f9b575511dd3095de685173c75d 100644
--- a/third_party/WebKit/Source/core/page/TouchAdjustment.cpp
+++ b/third_party/WebKit/Source/core/page/TouchAdjustment.cpp
@@ -295,7 +295,7 @@ void compileSubtargetList(const HeapVector<Member<Node>>& intersectedNodes,
for (visitedNode = parentShadowHostOrOwner(visitedNode); visitedNode;
visitedNode = parentShadowHostOrOwner(visitedNode)) {
HeapHashSet<Member<Node>>::AddResult addResult =
- ancestorsToRespondersSet.add(visitedNode);
+ ancestorsToRespondersSet.insert(visitedNode);
if (!addResult.isNewEntry)
break;
}
@@ -336,7 +336,7 @@ void compileSubtargetList(const HeapVector<Member<Node>>& intersectedNodes,
replacement = nullptr;
break;
}
- editableAncestors.add(replacement);
+ editableAncestors.insert(replacement);
parent = parent->parentOrShadowHostNode();
}
candidate = replacement;
« no previous file with comments | « third_party/WebKit/Source/core/page/Page.cpp ('k') | third_party/WebKit/Source/core/page/TouchDisambiguation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698