| Index: Source/modules/speech/SpeechSynthesisEvent.cpp
|
| diff --git a/Source/modules/speech/SpeechSynthesisEvent.cpp b/Source/modules/speech/SpeechSynthesisEvent.cpp
|
| index 05ee1d1bdc8e91e4fe59fb293cdb541df92c48f0..651932f1293d10d76815d590a4f1073af74def88 100644
|
| --- a/Source/modules/speech/SpeechSynthesisEvent.cpp
|
| +++ b/Source/modules/speech/SpeechSynthesisEvent.cpp
|
| @@ -33,21 +33,28 @@ PassRefPtrWillBeRawPtr<SpeechSynthesisEvent> SpeechSynthesisEvent::create()
|
| return adoptRefWillBeNoop(new SpeechSynthesisEvent);
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<SpeechSynthesisEvent> SpeechSynthesisEvent::create(const AtomicString& type, unsigned charIndex, float elapsedTime, const String& name)
|
| +PassRefPtrWillBeRawPtr<SpeechSynthesisEvent> SpeechSynthesisEvent::create(const AtomicString& type, SpeechSynthesisUtterance* utterance, unsigned charIndex, float elapsedTime, const String& name)
|
| {
|
| - return adoptRefWillBeNoop(new SpeechSynthesisEvent(type, charIndex, elapsedTime, name));
|
| + return adoptRefWillBeNoop(new SpeechSynthesisEvent(type, utterance, charIndex, elapsedTime, name));
|
| }
|
|
|
| SpeechSynthesisEvent::SpeechSynthesisEvent()
|
| {
|
| }
|
|
|
| -SpeechSynthesisEvent::SpeechSynthesisEvent(const AtomicString& type, unsigned charIndex, float elapsedTime, const String& name)
|
| +SpeechSynthesisEvent::SpeechSynthesisEvent(const AtomicString& type, SpeechSynthesisUtterance* utterance, unsigned charIndex, float elapsedTime, const String& name)
|
| : Event(type, false, false)
|
| + , m_utterance(utterance)
|
| , m_charIndex(charIndex)
|
| , m_elapsedTime(elapsedTime)
|
| , m_name(name)
|
| {
|
| }
|
|
|
| +DEFINE_TRACE(SpeechSynthesisEvent)
|
| +{
|
| + visitor->trace(m_utterance);
|
| + Event::trace(visitor);
|
| +}
|
| +
|
| } // namespace blink
|
|
|