Index: Source/modules/speech/SpeechRecognitionResult.cpp |
diff --git a/Source/modules/speech/SpeechRecognitionResult.cpp b/Source/modules/speech/SpeechRecognitionResult.cpp |
index b4bfe7d71161fd13307bf4102f69d2e9c9a85d24..09c58590db27c29bda8a79d585789d7d46963d22 100644 |
--- a/Source/modules/speech/SpeechRecognitionResult.cpp |
+++ b/Source/modules/speech/SpeechRecognitionResult.cpp |
@@ -29,11 +29,13 @@ |
namespace WebCore { |
+DEFINE_GC_INFO(SpeechRecognitionResult); |
+ |
SpeechRecognitionResult::~SpeechRecognitionResult() |
{ |
} |
-PassRefPtr<SpeechRecognitionResult> SpeechRecognitionResult::create(const Vector<RefPtr<SpeechRecognitionAlternative> >& alternatives, bool final) |
+PassRefPtr<SpeechRecognitionResult> SpeechRecognitionResult::create(const WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionAlternative> >& alternatives, bool final) |
{ |
return adoptRef(new SpeechRecognitionResult(alternatives, final)); |
} |
@@ -46,11 +48,16 @@ SpeechRecognitionAlternative* SpeechRecognitionResult::item(unsigned long index) |
return m_alternatives[index].get(); |
} |
-SpeechRecognitionResult::SpeechRecognitionResult(const Vector<RefPtr<SpeechRecognitionAlternative> >& alternatives, bool final) |
- : m_alternatives(alternatives) |
- , m_final(final) |
+SpeechRecognitionResult::SpeechRecognitionResult(const WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionAlternative> >& alternatives, bool final) |
+ : m_final(final) |
+ , m_alternatives(alternatives) |
{ |
ScriptWrappable::init(this); |
} |
+void SpeechRecognitionResult::trace(Visitor* visitor) |
+{ |
+ visitor->trace(m_alternatives); |
+} |
+ |
} // namespace WebCore |