| Index: third_party/WebKit/Source/modules/speech/SpeechSynthesis.h
|
| diff --git a/third_party/WebKit/Source/modules/speech/SpeechSynthesis.h b/third_party/WebKit/Source/modules/speech/SpeechSynthesis.h
|
| index 3094a4cfc7174e3ffe21b29f7d228f4b0b47e216..6363225e31ce7b9817dc8f986f0042d052e95383 100644
|
| --- a/third_party/WebKit/Source/modules/speech/SpeechSynthesis.h
|
| +++ b/third_party/WebKit/Source/modules/speech/SpeechSynthesis.h
|
| @@ -26,7 +26,6 @@
|
| #ifndef SpeechSynthesis_h
|
| #define SpeechSynthesis_h
|
|
|
| -#include "core/dom/ContextLifecycleObserver.h"
|
| #include "modules/EventTargetModules.h"
|
| #include "modules/ModulesExport.h"
|
| #include "modules/speech/SpeechSynthesisUtterance.h"
|
| @@ -41,8 +40,7 @@ class PlatformSpeechSynthesizerClient;
|
|
|
| class MODULES_EXPORT SpeechSynthesis final
|
| : public EventTargetWithInlineData,
|
| - public PlatformSpeechSynthesizerClient,
|
| - public ContextLifecycleObserver {
|
| + public PlatformSpeechSynthesizerClient {
|
| DEFINE_WRAPPERTYPEINFO();
|
| USING_GARBAGE_COLLECTED_MIXIN(SpeechSynthesis);
|
|
|
| @@ -65,7 +63,9 @@ class MODULES_EXPORT SpeechSynthesis final
|
|
|
| DEFINE_ATTRIBUTE_EVENT_LISTENER(voiceschanged);
|
|
|
| - ExecutionContext* getExecutionContext() const override;
|
| + ExecutionContext* getExecutionContext() const override {
|
| + return m_executionContext;
|
| + }
|
|
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| @@ -93,6 +93,7 @@ class MODULES_EXPORT SpeechSynthesis final
|
| // Returns the utterance at the front of the queue.
|
| SpeechSynthesisUtterance* currentSpeechUtterance() const;
|
|
|
| + Member<ExecutionContext> m_executionContext;
|
| Member<PlatformSpeechSynthesizer> m_platformSpeechSynthesizer;
|
| HeapVector<Member<SpeechSynthesisVoice>> m_voiceList;
|
| HeapDeque<Member<SpeechSynthesisUtterance>> m_utteranceQueue;
|
|
|