| Index: Source/modules/speech/SpeechRecognitionEvent.cpp
|
| diff --git a/Source/modules/speech/SpeechRecognitionEvent.cpp b/Source/modules/speech/SpeechRecognitionEvent.cpp
|
| index 029b5042e2f3a11d4b99c99f6ba7eaa1a4b1801f..b40fe9bd0f4d3eda55adc786803db9a75c0b4660 100644
|
| --- a/Source/modules/speech/SpeechRecognitionEvent.cpp
|
| +++ b/Source/modules/speech/SpeechRecognitionEvent.cpp
|
| @@ -34,19 +34,19 @@ SpeechRecognitionEventInit::SpeechRecognitionEventInit()
|
| {
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::create()
|
| +PassRefPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::create()
|
| {
|
| - return adoptRefWillBeRefCountedGarbageCollected(new SpeechRecognitionEvent());
|
| + return adoptRef(new SpeechRecognitionEvent());
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::create(const AtomicString& eventName, const SpeechRecognitionEventInit& initializer)
|
| +PassRefPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::create(const AtomicString& eventName, const SpeechRecognitionEventInit& initializer)
|
| {
|
| - return adoptRefWillBeRefCountedGarbageCollected(new SpeechRecognitionEvent(eventName, initializer));
|
| + return adoptRef(new SpeechRecognitionEvent(eventName, initializer));
|
| }
|
|
|
| PassRefPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::createResult(unsigned long resultIndex, const WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionResult> >& results)
|
| {
|
| - return adoptRefWillBeRefCountedGarbageCollected(new SpeechRecognitionEvent(EventTypeNames::result, resultIndex, SpeechRecognitionResultList::create(results)));
|
| + return adoptRef(new SpeechRecognitionEvent(EventTypeNames::result, resultIndex, SpeechRecognitionResultList::create(results)));
|
| }
|
|
|
| PassRefPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::createNoMatch(PassRefPtrWillBeRawPtr<SpeechRecognitionResult> result)
|
| @@ -57,7 +57,7 @@ PassRefPtr<SpeechRecognitionEvent> SpeechRecognitionEvent::createNoMatch(PassRef
|
| return adoptRef(new SpeechRecognitionEvent(EventTypeNames::nomatch, 0, SpeechRecognitionResultList::create(results)));
|
| }
|
|
|
| - return adoptRefWillBeRefCountedGarbageCollected(new SpeechRecognitionEvent(EventTypeNames::nomatch, 0, nullptr));
|
| + return adoptRef(new SpeechRecognitionEvent(EventTypeNames::nomatch, 0, nullptr));
|
| }
|
|
|
| const AtomicString& SpeechRecognitionEvent::interfaceName() const
|
|
|