Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: third_party/WebKit/Source/modules/speech/testing/InternalsSpeechSynthesis.cpp

Issue 2618613006: Remove ContextClient from DOMWindowSpeechSynthesis (Closed)
Patch Set: temp Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698