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

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

Issue 2552993002: Rename activeDOMObjectsAreStopped to isContextDestroyed (Closed)
Patch Set: Created 4 years 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..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(

Powered by Google App Engine
This is Rietveld 408576698