diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/modules/speech/SpeechSynthesisUtterance.cpp')
-rw-r--r-- | chromium/third_party/WebKit/Source/modules/speech/SpeechSynthesisUtterance.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/chromium/third_party/WebKit/Source/modules/speech/SpeechSynthesisUtterance.cpp b/chromium/third_party/WebKit/Source/modules/speech/SpeechSynthesisUtterance.cpp index 7031c0d90ce..144342edf72 100644 --- a/chromium/third_party/WebKit/Source/modules/speech/SpeechSynthesisUtterance.cpp +++ b/chromium/third_party/WebKit/Source/modules/speech/SpeechSynthesisUtterance.cpp @@ -28,9 +28,9 @@ namespace WebCore { -PassRefPtr<SpeechSynthesisUtterance> SpeechSynthesisUtterance::create(ExecutionContext* context, const String& text) +SpeechSynthesisUtterance* SpeechSynthesisUtterance::create(ExecutionContext* context, const String& text) { - return adoptRef(new SpeechSynthesisUtterance(context, text)); + return adoptRefCountedGarbageCollectedWillBeNoop(new SpeechSynthesisUtterance(context, text)); } SpeechSynthesisUtterance::SpeechSynthesisUtterance(ExecutionContext* context, const String& text) @@ -43,7 +43,6 @@ SpeechSynthesisUtterance::SpeechSynthesisUtterance(ExecutionContext* context, co SpeechSynthesisUtterance::~SpeechSynthesisUtterance() { - m_platformUtterance->setClient(0); } ExecutionContext* SpeechSynthesisUtterance::executionContext() const @@ -71,4 +70,11 @@ void SpeechSynthesisUtterance::setVoice(SpeechSynthesisVoice* voice) m_platformUtterance->setVoice(voice->platformVoice()); } +void SpeechSynthesisUtterance::trace(Visitor* visitor) +{ + visitor->trace(m_platformUtterance); + visitor->trace(m_voice); + EventTargetWithInlineData::trace(visitor); +} + } // namespace WebCore |