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

Unified Diff: third_party/WebKit/Source/core/dom/MutationObserver.cpp

Issue 2696183002: Migrate WTF::HashSet::remove() to ::erase() [part 1] (Closed)
Patch Set: one more platform-specific reference Created 3 years, 10 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/MutationObserver.cpp
diff --git a/third_party/WebKit/Source/core/dom/MutationObserver.cpp b/third_party/WebKit/Source/core/dom/MutationObserver.cpp
index 8b00d1453f80a749bc13e25cd7d1391a8f29d7f1..85f6ebac2e8955a11ddc2b3e4dc57e9800b2a37f 100644
--- a/third_party/WebKit/Source/core/dom/MutationObserver.cpp
+++ b/third_party/WebKit/Source/core/dom/MutationObserver.cpp
@@ -163,7 +163,7 @@ void MutationObserver::observationStarted(
void MutationObserver::observationEnded(
MutationObserverRegistration* registration) {
DCHECK(m_registrations.contains(registration));
- m_registrations.remove(registration);
+ m_registrations.erase(registration);
}
static MutationObserverSet& activeMutationObservers() {
@@ -280,7 +280,7 @@ void MutationObserver::resumeSuspendedObservers() {
copyToVector(suspendedMutationObservers(), suspended);
for (const auto& observer : suspended) {
if (!observer->shouldBeSuspended()) {
- suspendedMutationObservers().remove(observer);
+ suspendedMutationObservers().erase(observer);
activateObserver(observer);
}
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/IdTargetObserverRegistry.cpp ('k') | third_party/WebKit/Source/core/dom/NodeRareData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698