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

Unified Diff: third_party/WebKit/Source/modules/speech/SpeechSynthesis.cpp

Issue 1481163002: Drop [LegacyInterfaceTypeChecking] for SpeechSynthesis.prototype.speak (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update tests Created 5 years, 1 month 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/SpeechSynthesis.cpp
diff --git a/third_party/WebKit/Source/modules/speech/SpeechSynthesis.cpp b/third_party/WebKit/Source/modules/speech/SpeechSynthesis.cpp
index 454956d2a1131e19744f9f2f8630f250645e6e0d..8fdff01ad926612984497decbb94271e45098201 100644
--- a/third_party/WebKit/Source/modules/speech/SpeechSynthesis.cpp
+++ b/third_party/WebKit/Source/modules/speech/SpeechSynthesis.cpp
@@ -26,7 +26,6 @@
#include "config.h"
#include "modules/speech/SpeechSynthesis.h"
-#include "bindings/core/v8/ExceptionState.h"
#include "core/dom/ExecutionContext.h"
#include "modules/speech/SpeechSynthesisEvent.h"
#include "platform/speech/PlatformSpeechSynthesisVoice.h"
@@ -106,12 +105,9 @@ void SpeechSynthesis::startSpeakingImmediately()
m_platformSpeechSynthesizer->speak(utterance->platformUtterance());
}
-void SpeechSynthesis::speak(SpeechSynthesisUtterance* utterance, ExceptionState& exceptionState)
+void SpeechSynthesis::speak(SpeechSynthesisUtterance* utterance)
{
- if (!utterance) {
- exceptionState.throwTypeError("Invalid utterance argument");
- return;
- }
+ ASSERT(utterance);
m_utteranceQueue.append(utterance);

Powered by Google App Engine
This is Rietveld 408576698