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

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

Issue 2799573003: Migrate WTF::HashCountedSet::remove() to ::erase() (Closed)
Patch Set: Created 3 years, 8 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/CSSSelectorWatch.cpp
diff --git a/third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp b/third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp
index 7e57b4bfdfaff2e27749618210b543c3f8757c63..31a570ea4c403ce3356467304adcfff39b1bd105 100644
--- a/third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp
+++ b/third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp
@@ -95,7 +95,7 @@ void CSSSelectorWatch::updateSelectorMatches(
bool shouldUpdateTimer = false;
for (const auto& selector : removedSelectors) {
- if (!m_matchingCallbackSelectors.remove(selector))
+ if (!m_matchingCallbackSelectors.erase(selector))
continue;
// Count reached 0.

Powered by Google App Engine
This is Rietveld 408576698