| Index: Source/modules/speech/SpeechRecognition.cpp
|
| diff --git a/Source/modules/speech/SpeechRecognition.cpp b/Source/modules/speech/SpeechRecognition.cpp
|
| index 364332ee89098792393ccd585a9bcdf32895dd6b..d81aa2c39bb27c27fc8c47816f62d219ded98328 100644
|
| --- a/Source/modules/speech/SpeechRecognition.cpp
|
| +++ b/Source/modules/speech/SpeechRecognition.cpp
|
| @@ -37,9 +37,11 @@
|
|
|
| namespace WebCore {
|
|
|
| -PassRefPtr<SpeechRecognition> SpeechRecognition::create(ExecutionContext* context)
|
| +DEFINE_GC_INFO(SpeechRecognition);
|
| +
|
| +PassRefPtrWillBeRawPtr<SpeechRecognition> SpeechRecognition::create(ExecutionContext* context)
|
| {
|
| - RefPtr<SpeechRecognition> speechRecognition(adoptRef(new SpeechRecognition(context)));
|
| + RefPtrWillBeRawPtr<SpeechRecognition> speechRecognition(adoptRefCountedWillBeRefCountedGarbageCollected(new SpeechRecognition(context)));
|
| speechRecognition->suspendIfNeeded();
|
| return speechRecognition.release();
|
| }
|
| @@ -189,4 +191,9 @@ SpeechRecognition::~SpeechRecognition()
|
| {
|
| }
|
|
|
| +void SpeechRecognition::trace(Visitor* visitor)
|
| +{
|
| + visitor->trace(m_grammars);
|
| +}
|
| +
|
| } // namespace WebCore
|
|
|