Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1111)

Unified Diff: Source/modules/speech/SpeechSynthesisEvent.cpp

Issue 182763002: Add [WillBeGarbageCollected] to Event.idl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/speech/SpeechSynthesisEvent.cpp
diff --git a/Source/modules/speech/SpeechSynthesisEvent.cpp b/Source/modules/speech/SpeechSynthesisEvent.cpp
index c35e4310fa675c340ea0f977d36419167c8d5a9b..1e191ca0fb80ae57610c294b1e17d03a9f3357f5 100644
--- a/Source/modules/speech/SpeechSynthesisEvent.cpp
+++ b/Source/modules/speech/SpeechSynthesisEvent.cpp
@@ -28,14 +28,14 @@
namespace WebCore {
-PassRefPtr<SpeechSynthesisEvent> SpeechSynthesisEvent::create()
+PassRefPtrWillBeRawPtr<SpeechSynthesisEvent> SpeechSynthesisEvent::create()
{
- return adoptRef(new SpeechSynthesisEvent());
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new SpeechSynthesisEvent());
}
-PassRefPtr<SpeechSynthesisEvent> SpeechSynthesisEvent::create(const AtomicString& type, unsigned long charIndex, float elapsedTime, const String& name)
+PassRefPtrWillBeRawPtr<SpeechSynthesisEvent> SpeechSynthesisEvent::create(const AtomicString& type, unsigned long charIndex, float elapsedTime, const String& name)
{
- return adoptRef(new SpeechSynthesisEvent(type, charIndex, elapsedTime, name));
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new SpeechSynthesisEvent(type, charIndex, elapsedTime, name));
}
SpeechSynthesisEvent::SpeechSynthesisEvent()

Powered by Google App Engine
This is Rietveld 408576698