| 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;
|
| }
|
|
|