| 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 8351b0a02f1e529a4979d7aeed027202f37f7eb4..de3c677ff9cf949d97c75f07519ccd4e7b1bbe88 100644
|
| --- a/third_party/WebKit/Source/modules/speech/SpeechSynthesis.cpp
|
| +++ b/third_party/WebKit/Source/modules/speech/SpeechSynthesis.cpp
|
| @@ -52,8 +52,7 @@ ExecutionContext* SpeechSynthesis::getExecutionContext() const {
|
|
|
| void SpeechSynthesis::voicesDidChange() {
|
| m_voiceList.clear();
|
| - if (getExecutionContext() &&
|
| - !getExecutionContext()->activeDOMObjectsAreStopped())
|
| + if (getExecutionContext() && !getExecutionContext()->isContextDestroyed())
|
| dispatchEvent(Event::create(EventTypeNames::voiceschanged));
|
| }
|
|
|
| @@ -131,8 +130,7 @@ void SpeechSynthesis::fireEvent(const AtomicString& type,
|
| SpeechSynthesisUtterance* utterance,
|
| unsigned long charIndex,
|
| const String& name) {
|
| - if (getExecutionContext() &&
|
| - !getExecutionContext()->activeDOMObjectsAreStopped()) {
|
| + if (getExecutionContext() && !getExecutionContext()->isContextDestroyed()) {
|
| double elapsedTimeMillis =
|
| (monotonicallyIncreasingTime() - utterance->startTime()) * 1000.0;
|
| utterance->dispatchEvent(SpeechSynthesisEvent::create(
|
|
|