| Index: third_party/WebKit/Source/modules/speech/testing/InternalsSpeechSynthesis.cpp
|
| diff --git a/third_party/WebKit/Source/modules/speech/testing/InternalsSpeechSynthesis.cpp b/third_party/WebKit/Source/modules/speech/testing/InternalsSpeechSynthesis.cpp
|
| index 62c007dac035e62007e36c254a95767678fde569..d45fb3b63b1fe3b4ee7396b92150e3a291482764 100644
|
| --- a/third_party/WebKit/Source/modules/speech/testing/InternalsSpeechSynthesis.cpp
|
| +++ b/third_party/WebKit/Source/modules/speech/testing/InternalsSpeechSynthesis.cpp
|
| @@ -31,7 +31,7 @@
|
| #include "InternalsSpeechSynthesis.h"
|
|
|
| #include "core/dom/Document.h"
|
| -#include "core/frame/LocalDOMWindow.h"
|
| +#include "core/frame/DOMWindow.h"
|
| #include "core/testing/Internals.h"
|
| #include "modules/speech/DOMWindowSpeechSynthesis.h"
|
| #include "modules/speech/SpeechSynthesis.h"
|
| @@ -39,12 +39,12 @@
|
|
|
| namespace blink {
|
|
|
| -void InternalsSpeechSynthesis::enableMockSpeechSynthesizer(Internals&,
|
| - Document* document) {
|
| - ASSERT(document && document->domWindow());
|
| -
|
| +void InternalsSpeechSynthesis::enableMockSpeechSynthesizer(
|
| + ScriptState* scriptState,
|
| + Internals&,
|
| + DOMWindow* window) {
|
| SpeechSynthesis* synthesis =
|
| - DOMWindowSpeechSynthesis::speechSynthesis(*document->domWindow());
|
| + DOMWindowSpeechSynthesis::speechSynthesis(scriptState, *window);
|
| if (!synthesis)
|
| return;
|
|
|
|
|