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

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

Issue 2433773006: Remove ExecutionContext::activeDOMObjectsAreStopped()
Patch Set: Created 4 years, 2 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/SpeechSynthesis.cpp
diff --git a/third_party/WebKit/Source/modules/speech/SpeechSynthesis.cpp b/third_party/WebKit/Source/modules/speech/SpeechSynthesis.cpp
index 8351b0a02f1e529a4979d7aeed027202f37f7eb4..e0863926d2233a38cbb2618c7398eef2dd3ff640 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())
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()) {
double elapsedTimeMillis =
(monotonicallyIncreasingTime() - utterance->startTime()) * 1000.0;
utterance->dispatchEvent(SpeechSynthesisEvent::create(

Powered by Google App Engine
This is Rietveld 408576698