Index: Source/WebCore/workers/WorkerRunLoop.cpp |
=================================================================== |
--- Source/WebCore/workers/WorkerRunLoop.cpp (revision 141168) |
+++ Source/WebCore/workers/WorkerRunLoop.cpp (working copy) |
@@ -201,6 +201,11 @@ |
postTaskForMode(task, defaultMode()); |
} |
+void WorkerRunLoop::postTaskAndTerminate(PassOwnPtr<ScriptExecutionContext::Task> task) |
+{ |
+ m_messageQueue.appendAndKill(Task::create(task, defaultMode().isolatedCopy())); |
+} |
+ |
void WorkerRunLoop::postTaskForMode(PassOwnPtr<ScriptExecutionContext::Task> task, const String& mode) |
{ |
m_messageQueue.append(Task::create(task, mode.isolatedCopy())); |