Index: Source/modules/speech/SpeechSynthesisUtterance.cpp |
diff --git a/Source/modules/speech/SpeechSynthesisUtterance.cpp b/Source/modules/speech/SpeechSynthesisUtterance.cpp |
index 7031c0d90ce68e3ec1220111ff060a0fa6ae8ff8..c6b79df2a47409ff600ebd5a1b59ee9122607a27 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 adoptRefCountedWillBeRefCountedGarbageCollected(new SpeechSynthesisUtterance(context, text)); |
} |
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 |