| Index: third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp
|
| diff --git a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp
|
| index 8bdb90816916995e517336d2b5bc827dcfb42f35..08b41a1ae04bf4c5ef1a006d00fa37890bec7b6e 100644
|
| --- a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp
|
| +++ b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "modules/compositorworker/CompositorWorkerGlobalScope.h"
|
|
|
| +#include <memory>
|
| +#include "bindings/core/v8/ScriptState.h"
|
| #include "bindings/core/v8/SerializedScriptValue.h"
|
| #include "core/dom/CompositorWorkerProxyClient.h"
|
| #include "core/workers/InProcessWorkerObjectProxy.h"
|
| @@ -11,7 +13,6 @@
|
| #include "modules/EventTargetModules.h"
|
| #include "modules/compositorworker/CompositorWorkerThread.h"
|
| #include "wtf/AutoReset.h"
|
| -#include <memory>
|
|
|
| namespace blink {
|
|
|
| @@ -68,13 +69,14 @@ const AtomicString& CompositorWorkerGlobalScope::interfaceName() const {
|
| }
|
|
|
| void CompositorWorkerGlobalScope::postMessage(
|
| - ExecutionContext* executionContext,
|
| + ScriptState* scriptState,
|
| PassRefPtr<SerializedScriptValue> message,
|
| const MessagePortArray& ports,
|
| ExceptionState& exceptionState) {
|
| // Disentangle the port in preparation for sending it to the remote context.
|
| std::unique_ptr<MessagePortChannelArray> channels =
|
| - MessagePort::disentanglePorts(executionContext, ports, exceptionState);
|
| + MessagePort::disentanglePorts(scriptState->getExecutionContext(), ports,
|
| + exceptionState);
|
| if (exceptionState.hadException())
|
| return;
|
| workerObjectProxy().postMessageToWorkerObject(std::move(message),
|
|
|