| Index: Source/platform/exported/WebSpeechSynthesizerClientImpl.cpp
|
| diff --git a/Source/platform/exported/WebSpeechSynthesizerClientImpl.cpp b/Source/platform/exported/WebSpeechSynthesizerClientImpl.cpp
|
| index da6fc390deca868cd10ae34211af62e10a2e8466..0102a3e755a11aa36fa439b14650d8ae780d48a2 100644
|
| --- a/Source/platform/exported/WebSpeechSynthesizerClientImpl.cpp
|
| +++ b/Source/platform/exported/WebSpeechSynthesizerClientImpl.cpp
|
| @@ -42,9 +42,9 @@ WebSpeechSynthesizerClientImpl::~WebSpeechSynthesizerClientImpl()
|
|
|
| void WebSpeechSynthesizerClientImpl::setVoiceList(const blink::WebVector<blink::WebSpeechSynthesisVoice>& voices)
|
| {
|
| - Vector<RefPtr<PlatformSpeechSynthesisVoice> > outVoices;
|
| + HeapVector<Member<PlatformSpeechSynthesisVoice> > outVoices;
|
| for (size_t i = 0; i < voices.size(); i++)
|
| - outVoices.append(PassRefPtr<PlatformSpeechSynthesisVoice>(voices[i]));
|
| + outVoices.append(voices[i]);
|
| m_synthesizer->setVoiceList(outVoices);
|
| m_client->voicesDidChange();
|
| }
|
| @@ -84,4 +84,10 @@ void WebSpeechSynthesizerClientImpl::sentenceBoundaryEventOccurred(const blink::
|
| m_client->boundaryEventOccurred(utterance, SpeechSentenceBoundary, charIndex);
|
| }
|
|
|
| +void WebSpeechSynthesizerClientImpl::trace(Visitor* visitor)
|
| +{
|
| + visitor->trace(m_synthesizer);
|
| + visitor->trace(m_client);
|
| +}
|
| +
|
| } // namespace WebCore
|
|
|