Commit d2525bb7 authored by jianli@chromium.org's avatar jianli@chromium.org

Fix qt build break.

* html/ThreadableBlobRegistry.cpp:
(WebCore::postTaskToMainThread):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65272 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent ab8d91a8
2010-08-12 Jian Li <jianli@chromium.org>
Fix qt build break.
* html/ThreadableBlobRegistry.cpp:
(WebCore::postTaskToMainThread):
2010-08-12 Jian Li <jianli@chromium.org>
Reviewed by David Levin.
......@@ -35,6 +35,7 @@
#include "BlobData.h"
#include "BlobRegistry.h"
#include "CrossThreadTask.h"
#include "NotImplemented.h"
#include "ScriptExecutionContext.h"
#include "WorkerContext.h"
#include "WorkerLoaderProxy.h"
......@@ -44,9 +45,13 @@ namespace WebCore {
static void postTaskToMainThread(ScriptExecutionContext* scriptExecutionContext, PassOwnPtr<ScriptExecutionContext::Task> task)
{
#if ENABLE(WORKERS)
ASSERT(scriptExecutionContext->isWorkerContext());
WorkerLoaderProxy& proxy = static_cast<WorkerContext*>(scriptExecutionContext)->thread()->workerLoaderProxy();
proxy.postTaskToLoader(task);
#else
notImplemented();
#endif
}
static void registerBlobURLTask(ScriptExecutionContext*, const KURL& url, PassOwnPtr<BlobData> blobData)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment