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

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

Issue 2703833002: Migrate WTF::HashSet::remove() to ::erase() [part 2] (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/custom/CustomElementUpgradeSorter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a5f42bc3b17726e6b157ddf5a78b6b2ca5453bfd..cd8f8e03bd28db41bb661536c214a576ccf24c79 100644
--- a/third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp
+++ b/third_party/WebKit/Source/core/dom/CSSSelectorWatch.cpp
@@ -102,7 +102,7 @@ void CSSSelectorWatch::updateSelectorMatches(
shouldUpdateTimer = true;
auto it = m_addedSelectors.find(selector);
if (it != m_addedSelectors.end())
- m_addedSelectors.remove(it);
+ m_addedSelectors.erase(it);
else
m_removedSelectors.insert(selector);
}
@@ -116,7 +116,7 @@ void CSSSelectorWatch::updateSelectorMatches(
shouldUpdateTimer = true;
auto it = m_removedSelectors.find(selector);
if (it != m_removedSelectors.end())
- m_removedSelectors.remove(it);
+ m_removedSelectors.erase(it);
else
m_addedSelectors.insert(selector);
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/custom/CustomElementUpgradeSorter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698