Chromium Code Reviews| Index: Source/modules/speech/SpeechSynthesisUtterance.cpp |
| diff --git a/Source/modules/speech/SpeechSynthesisUtterance.cpp b/Source/modules/speech/SpeechSynthesisUtterance.cpp |
| index 7031c0d90ce68e3ec1220111ff060a0fa6ae8ff8..8089a8d1248a6b2ab922423c1d9f9cb437f28e0b 100644 |
| --- a/Source/modules/speech/SpeechSynthesisUtterance.cpp |
| +++ b/Source/modules/speech/SpeechSynthesisUtterance.cpp |
| @@ -28,9 +28,11 @@ |
| namespace WebCore { |
| -PassRefPtr<SpeechSynthesisUtterance> SpeechSynthesisUtterance::create(ExecutionContext* context, const String& text) |
| +DEFINE_GC_INFO(SpeechSynthesisUtterance); |
| + |
| +PassRefPtrWillBeRawPtr<SpeechSynthesisUtterance> SpeechSynthesisUtterance::create(ExecutionContext* context, const String& text) |
| { |
| - return adoptRef(new SpeechSynthesisUtterance(context, text)); |
| + return adoptRefWillBeNoop(new SpeechSynthesisUtterance(context, text)); |
|
zerny-chromium
2014/02/12 11:45:19
adoptRefCountedWillBeGarbageCollected
|
| } |
| SpeechSynthesisUtterance::SpeechSynthesisUtterance(ExecutionContext* context, const String& text) |
| @@ -71,4 +73,9 @@ void SpeechSynthesisUtterance::setVoice(SpeechSynthesisVoice* voice) |
| m_platformUtterance->setVoice(voice->platformVoice()); |
| } |
| +void SpeechSynthesisUtterance::trace(Visitor* visitor) |
| +{ |
| + visitor->trace(m_voice); |
| +} |
| + |
| } // namespace WebCore |