Chromium Code Reviews| Index: third_party/WebKit/Source/core/dom/ExecutionContext.cpp |
| diff --git a/third_party/WebKit/Source/core/dom/ExecutionContext.cpp b/third_party/WebKit/Source/core/dom/ExecutionContext.cpp |
| index 4a49825c094cff40829c9387b9d6ce4a44e15f07..0312ad3f1c3711df82b2a105f4cfda08f2478531 100644 |
| --- a/third_party/WebKit/Source/core/dom/ExecutionContext.cpp |
| +++ b/third_party/WebKit/Source/core/dom/ExecutionContext.cpp |
| @@ -94,7 +94,7 @@ void ExecutionContext::postSuspendableTask(std::unique_ptr<SuspendableTask> task |
| { |
| m_suspendedTasks.append(std::move(task)); |
| if (!m_activeDOMObjectsAreSuspended) |
| - postTask(BLINK_FROM_HERE, createSameThreadTask(&ExecutionContext::runSuspendableTasks, this)); |
| + postTask(BLINK_FROM_HERE, createSameThreadTask(&ExecutionContext::runSuspendableTasks, wrapCrossThreadPersistent(this))); |
|
haraken
2016/06/22 06:27:43
It looks strange that you use a CrossThreadPersist
tzik
2016/06/22 08:26:04
Done.
|
| } |
| void ExecutionContext::notifyContextDestroyed() |
| @@ -120,7 +120,7 @@ void ExecutionContext::resumeScheduledTasks() |
| if (m_isRunSuspendableTasksScheduled) |
| return; |
| m_isRunSuspendableTasksScheduled = true; |
| - postTask(BLINK_FROM_HERE, createSameThreadTask(&ExecutionContext::runSuspendableTasks, this)); |
| + postTask(BLINK_FROM_HERE, createSameThreadTask(&ExecutionContext::runSuspendableTasks, wrapCrossThreadPersistent(this))); |
|
haraken
2016/06/22 06:27:43
Ditto.
tzik
2016/06/22 08:26:04
Done.
|
| } |
| void ExecutionContext::suspendActiveDOMObjectIfNeeded(ActiveDOMObject* object) |