| Index: Source/web/WebKit.cpp
|
| diff --git a/Source/web/WebKit.cpp b/Source/web/WebKit.cpp
|
| index 5e9638c9433ed6b48d9ca8ca44b156bcd88f6969..0f8988ed54ae6fdb40fa214a2b9a80ece8994d7e 100644
|
| --- a/Source/web/WebKit.cpp
|
| +++ b/Source/web/WebKit.cpp
|
| @@ -81,7 +81,7 @@ public:
|
| }
|
| };
|
|
|
| -class MainThreadTaskRunner: public WebThread::Task {
|
| +class MainThreadTaskRunner: public WebTaskRunner::Task {
|
| WTF_MAKE_NONCOPYABLE(MainThreadTaskRunner);
|
| public:
|
| MainThreadTaskRunner(WTF::MainThreadFunction* function, void* context)
|
| @@ -156,7 +156,7 @@ static void cryptographicallyRandomValues(unsigned char* buffer, size_t length)
|
|
|
| static void callOnMainThreadFunction(WTF::MainThreadFunction function, void* context)
|
| {
|
| - Platform::current()->mainThread()->postTask(FROM_HERE, new MainThreadTaskRunner(function, context));
|
| + Platform::current()->mainThread()->defaultTaskRunner()->postTask(FROM_HERE, new MainThreadTaskRunner(function, context));
|
| }
|
|
|
| static void adjustAmountOfExternalAllocatedMemory(int size)
|
| @@ -184,7 +184,7 @@ void initializeWithoutV8(Platform* platform)
|
| s_pendingGCRunner = new PendingGCRunner;
|
| currentThread->addTaskObserver(s_pendingGCRunner);
|
|
|
| - OwnPtr<MessageLoopInterruptor> interruptor = adoptPtr(new MessageLoopInterruptor(currentThread));
|
| + OwnPtr<MessageLoopInterruptor> interruptor = adoptPtr(new MessageLoopInterruptor(currentThread->defaultTaskRunner()));
|
| ThreadState::current()->addInterruptor(interruptor.release());
|
| }
|
|
|
|
|