Chromium Code Reviews| Index: Source/modules/speech/SpeechRecognitionResultList.cpp |
| diff --git a/Source/modules/speech/SpeechRecognitionResultList.cpp b/Source/modules/speech/SpeechRecognitionResultList.cpp |
| index 7327bf7f7f3707ac484af9e323ddcafbeb8a5e96..69a81c8d22c6a3bbb18c468c9581bc264b9efe39 100644 |
| --- a/Source/modules/speech/SpeechRecognitionResultList.cpp |
| +++ b/Source/modules/speech/SpeechRecognitionResultList.cpp |
| @@ -29,9 +29,11 @@ |
| namespace WebCore { |
| -PassRefPtr<SpeechRecognitionResultList> SpeechRecognitionResultList::create(const Vector<RefPtr<SpeechRecognitionResult> >& results) |
| +DEFINE_GC_INFO(SpeechRecognitionResultList); |
| + |
| +PassRefPtrWillBeRawPtr<SpeechRecognitionResultList> SpeechRecognitionResultList::create(const Vector<RefPtr<SpeechRecognitionResult> >& results) |
| { |
| - return adoptRef(new SpeechRecognitionResultList(results)); |
| + return adoptRefWillBeNoop(new SpeechRecognitionResultList(results)); |
| } |
| SpeechRecognitionResult* SpeechRecognitionResultList::item(unsigned long index) |
| @@ -43,9 +45,21 @@ SpeechRecognitionResult* SpeechRecognitionResultList::item(unsigned long index) |
| } |
| SpeechRecognitionResultList::SpeechRecognitionResultList(const Vector<RefPtr<SpeechRecognitionResult> >& results) |
| +#if !ENABLE(OILPAN) |
| : m_results(results) |
| +#endif |
| { |
| ScriptWrappable::init(this); |
| +#if ENABLE(OILPAN) |
|
haraken
2014/02/13 01:21:21
Are you planning to remove this code by replacing
sof
2014/02/13 06:47:31
As I said in a comment somewhere else here, this r
sof
2014/02/13 07:52:39
..and if it wasn't clear, I definitely want to tid
|
| + m_results.grow(results.size()); |
| + for (size_t i = 0; i < results.size(); i++) |
| + m_results[i] = results[i].get(); |
| +#endif |
| +} |
| + |
| +void SpeechRecognitionResultList::trace(Visitor* visitor) |
| +{ |
| + visitor->trace(m_results); |
| } |
| } // namespace WebCore |