| Index: Source/modules/speech/SpeechSynthesisUtterance.cpp
|
| diff --git a/Source/modules/speech/SpeechSynthesisUtterance.cpp b/Source/modules/speech/SpeechSynthesisUtterance.cpp
|
| index c394a3c166e749c6234cfe82152e4ab12cefa47e..b11d046f80f093757720c3ebd32bbc8c003e3ca7 100644
|
| --- a/Source/modules/speech/SpeechSynthesisUtterance.cpp
|
| +++ b/Source/modules/speech/SpeechSynthesisUtterance.cpp
|
| @@ -27,7 +27,7 @@
|
| #include "modules/speech/SpeechSynthesisUtterance.h"
|
|
|
| namespace WebCore {
|
| -
|
| +
|
| PassRefPtr<SpeechSynthesisUtterance> SpeechSynthesisUtterance::create(ScriptExecutionContext* context, const String& text)
|
| {
|
| return adoptRef(new SpeechSynthesisUtterance(context, text));
|
| @@ -45,12 +45,12 @@ SpeechSynthesisUtterance::~SpeechSynthesisUtterance()
|
| {
|
| m_platformUtterance->setClient(0);
|
| }
|
| -
|
| +
|
| ScriptExecutionContext* SpeechSynthesisUtterance::scriptExecutionContext() const
|
| {
|
| return ContextLifecycleObserver::scriptExecutionContext();
|
| -}
|
| -
|
| +}
|
| +
|
| const AtomicString& SpeechSynthesisUtterance::interfaceName() const
|
| {
|
| return eventNames().interfaceForSpeechSynthesisUtterance;
|
| @@ -66,7 +66,7 @@ void SpeechSynthesisUtterance::setVoice(SpeechSynthesisVoice* voice)
|
| // Cache our own version of the SpeechSynthesisVoice so that we don't have to do some lookup
|
| // to go from the platform voice back to the speech synthesis voice in the read property.
|
| m_voice = voice;
|
| -
|
| +
|
| if (voice)
|
| m_platformUtterance->setVoice(voice->platformVoice());
|
| }
|
|
|