Title: [203099] trunk/Source/WebCore
Revision
203099
Author
wei...@apple.com
Date
2016-07-11 16:53:42 -0700 (Mon, 11 Jul 2016)

Log Message

Speech Synthesis: getting list of voices no longer works
<rdar://problem/22954120>
https://bugs.webkit.org/show_bug.cgi?id=159656

Reviewed by Tim Horton.

* platform/PlatformSpeechSynthesizer.h:
* platform/mac/PlatformSpeechSynthesizerMac.mm:
Default initialize m_voiceListIsInitialized to false so it is
initialized on both Mac and iOS. Remove the explicit initialization
from the Mac.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (203098 => 203099)


--- trunk/Source/WebCore/ChangeLog	2016-07-11 23:44:48 UTC (rev 203098)
+++ trunk/Source/WebCore/ChangeLog	2016-07-11 23:53:42 UTC (rev 203099)
@@ -1,3 +1,17 @@
+2016-07-11  Sam Weinig  <s...@webkit.org>
+
+        Speech Synthesis: getting list of voices no longer works
+        <rdar://problem/22954120>
+        https://bugs.webkit.org/show_bug.cgi?id=159656
+
+        Reviewed by Tim Horton.
+
+        * platform/PlatformSpeechSynthesizer.h:
+        * platform/mac/PlatformSpeechSynthesizerMac.mm:
+        Default initialize m_voiceListIsInitialized to false so it is
+        initialized on both Mac and iOS. Remove the explicit initialization
+        from the Mac.
+
 2016-07-11  Simon Fraser  <simon.fra...@apple.com>
 
         <rdar://problem/27285599> REGRESSION: Assertion under CertificateInfo::trust() every time I focus a text field

Modified: trunk/Source/WebCore/platform/PlatformSpeechSynthesizer.h (203098 => 203099)


--- trunk/Source/WebCore/platform/PlatformSpeechSynthesizer.h	2016-07-11 23:44:48 UTC (rev 203098)
+++ trunk/Source/WebCore/platform/PlatformSpeechSynthesizer.h	2016-07-11 23:53:42 UTC (rev 203099)
@@ -86,7 +86,7 @@
 private:
     virtual void initializeVoiceList();
 
-    bool m_voiceListIsInitialized;
+    bool m_voiceListIsInitialized { false };
     PlatformSpeechSynthesizerClient* m_speechSynthesizerClient;
     
 #if PLATFORM(COCOA)

Modified: trunk/Source/WebCore/platform/mac/PlatformSpeechSynthesizerMac.mm (203098 => 203099)


--- trunk/Source/WebCore/platform/mac/PlatformSpeechSynthesizerMac.mm	2016-07-11 23:44:48 UTC (rev 203098)
+++ trunk/Source/WebCore/platform/mac/PlatformSpeechSynthesizerMac.mm	2016-07-11 23:53:42 UTC (rev 203099)
@@ -206,8 +206,7 @@
 namespace WebCore {
 
 PlatformSpeechSynthesizer::PlatformSpeechSynthesizer(PlatformSpeechSynthesizerClient* client)
-    : m_voiceListIsInitialized(false)
-    , m_speechSynthesizerClient(client)
+    : m_speechSynthesizerClient(client)
 {
 }
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to