| Index: third_party/WebKit/Source/modules/compositorworker/CompositorWorker.cpp
|
| diff --git a/third_party/WebKit/Source/modules/compositorworker/CompositorWorker.cpp b/third_party/WebKit/Source/modules/compositorworker/CompositorWorker.cpp
|
| index 759dc94ea109cd46890cd166db5adcf9f6d8a739..e4d78645caaef5e914559d8675b8dfde6bdbc9b2 100644
|
| --- a/third_party/WebKit/Source/modules/compositorworker/CompositorWorker.cpp
|
| +++ b/third_party/WebKit/Source/modules/compositorworker/CompositorWorker.cpp
|
| @@ -5,8 +5,10 @@
|
| #include "modules/compositorworker/CompositorWorker.h"
|
|
|
| #include "bindings/core/v8/ExceptionState.h"
|
| +#include "core/dom/CompositorProxyClient.h"
|
| #include "core/dom/Document.h"
|
| #include "core/dom/ExceptionCode.h"
|
| +#include "core/page/ChromeClient.h"
|
| #include "core/workers/WorkerClients.h"
|
| #include "modules/EventTargetModules.h"
|
| #include "modules/compositorworker/CompositorWorkerMessagingProxy.h"
|
| @@ -42,10 +44,13 @@ const AtomicString& CompositorWorker::interfaceName() const
|
| return EventTargetNames::CompositorWorker;
|
| }
|
|
|
| -WorkerGlobalScopeProxy* CompositorWorker::createWorkerGlobalScopeProxy(ExecutionContext* worker)
|
| +WorkerGlobalScopeProxy* CompositorWorker::createWorkerGlobalScopeProxy(ExecutionContext* context)
|
| {
|
| - ASSERT(getExecutionContext()->isDocument());
|
| - return new CompositorWorkerMessagingProxy(this);
|
| + ASSERT(context->isDocument());
|
| + Document* document = toDocument(context);
|
| + WorkerClients* workerClients = WorkerClients::create();
|
| + provideCompositorProxyClientTo(workerClients, document->frame()->chromeClient().createCompositorProxyClient());
|
| + return new CompositorWorkerMessagingProxy(this, workerClients);
|
| }
|
|
|
| } // namespace blink
|
|
|