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

Unified Diff: Source/platform/speech/PlatformSpeechSynthesisUtterance.cpp

Issue 339823003: Oilpan: move platform speech objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Trace SpeechRecognition's controller reference. Created 6 years, 6 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/platform/speech/PlatformSpeechSynthesisUtterance.cpp
diff --git a/Source/platform/speech/PlatformSpeechSynthesisUtterance.cpp b/Source/platform/speech/PlatformSpeechSynthesisUtterance.cpp
index 23f31c5d7a2e49aa74fc2b56552d38a8c09607f4..97e988a2f6b193f8f912fe990025d72da8a7481f 100644
--- a/Source/platform/speech/PlatformSpeechSynthesisUtterance.cpp
+++ b/Source/platform/speech/PlatformSpeechSynthesisUtterance.cpp
@@ -28,9 +28,9 @@
namespace WebCore {
-PassRefPtr<PlatformSpeechSynthesisUtterance> PlatformSpeechSynthesisUtterance::create(PlatformSpeechSynthesisUtteranceClient* client)
+PlatformSpeechSynthesisUtterance* PlatformSpeechSynthesisUtterance::create(PlatformSpeechSynthesisUtteranceClient* client)
{
- return adoptRef(new PlatformSpeechSynthesisUtterance(client));
+ return new PlatformSpeechSynthesisUtterance(client);
}
PlatformSpeechSynthesisUtterance::PlatformSpeechSynthesisUtterance(PlatformSpeechSynthesisUtteranceClient* client)
@@ -41,4 +41,10 @@ PlatformSpeechSynthesisUtterance::PlatformSpeechSynthesisUtterance(PlatformSpeec
{
}
+void PlatformSpeechSynthesisUtterance::trace(Visitor* visitor)
+{
+ visitor->trace(m_client);
+ visitor->trace(m_voice);
+}
+
} // namespace WebCore
« no previous file with comments | « Source/platform/speech/PlatformSpeechSynthesisUtterance.h ('k') | Source/platform/speech/PlatformSpeechSynthesisVoice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698