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

Unified Diff: third_party/WebKit/Source/core/dom/ScriptRunner.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/ScriptRunner.cpp
diff --git a/third_party/WebKit/Source/core/dom/ScriptRunner.cpp b/third_party/WebKit/Source/core/dom/ScriptRunner.cpp
index 6b7e8009fbfcfd64982d4ccdcdbb71b4a5d9644e..92df0ed7d28edb9bde698c9d4c7e396a5b325afe 100644
--- a/third_party/WebKit/Source/core/dom/ScriptRunner.cpp
+++ b/third_party/WebKit/Source/core/dom/ScriptRunner.cpp
@@ -115,7 +115,7 @@ void ScriptRunner::notifyScriptReady(ScriptLoader* scriptLoader,
// to detach).
SECURITY_CHECK(m_pendingAsyncScripts.contains(scriptLoader));
- m_pendingAsyncScripts.remove(scriptLoader);
+ m_pendingAsyncScripts.erase(scriptLoader);
m_asyncScriptsToExecuteSoon.append(scriptLoader);
postTask(BLINK_FROM_HERE);
@@ -157,7 +157,7 @@ void ScriptRunner::notifyScriptLoadError(ScriptLoader* scriptLoader,
// (otherwise we'd cause a use-after-free in ~ScriptRunner when it tries
// to detach).
SECURITY_CHECK(m_pendingAsyncScripts.contains(scriptLoader));
- m_pendingAsyncScripts.remove(scriptLoader);
+ m_pendingAsyncScripts.erase(scriptLoader);
break;
}
case InOrder:
@@ -203,7 +203,7 @@ void ScriptRunner::movePendingScript(ScriptRunner* newRunner,
ScriptLoader* scriptLoader) {
if (m_pendingAsyncScripts.contains(scriptLoader)) {
newRunner->queueScriptForExecution(scriptLoader, Async);
- m_pendingAsyncScripts.remove(scriptLoader);
+ m_pendingAsyncScripts.erase(scriptLoader);
m_document->decrementLoadEventDelayCount();
return;
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/QualifiedName.cpp ('k') | third_party/WebKit/Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698