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

Unified Diff: third_party/WebKit/Source/core/dom/IntersectionObserverController.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/dom/IntersectionObserverController.cpp
diff --git a/third_party/WebKit/Source/core/dom/IntersectionObserverController.cpp b/third_party/WebKit/Source/core/dom/IntersectionObserverController.cpp
index 68ec7e743674cb2a9f8af476caf886a626de2ec2..e6289913ae47faca3565be13e8a5488ecd33ea9a 100644
--- a/third_party/WebKit/Source/core/dom/IntersectionObserverController.cpp
+++ b/third_party/WebKit/Source/core/dom/IntersectionObserverController.cpp
@@ -42,7 +42,7 @@ void IntersectionObserverController::postTaskToDeliverObservations() {
void IntersectionObserverController::scheduleIntersectionObserverForDelivery(
IntersectionObserver& observer) {
- m_pendingIntersectionObservers.add(&observer);
+ m_pendingIntersectionObservers.insert(&observer);
postTaskToDeliverObservations();
}
@@ -84,7 +84,7 @@ void IntersectionObserverController::computeTrackedIntersectionObservations() {
void IntersectionObserverController::addTrackedObserver(
IntersectionObserver& observer) {
- m_trackedIntersectionObservers.add(&observer);
+ m_trackedIntersectionObservers.insert(&observer);
}
void IntersectionObserverController::removeTrackedObserversForRoot(
« no previous file with comments | « third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp ('k') | third_party/WebKit/Source/core/dom/MessagePort.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698