It should be an error to use adoptPtr with RefCounted subclasses
https://bugs.webkit.org/show_bug.cgi?id=115389

Reviewed by Benjamin Poulain.

* wtf/PassOwnPtr.h:
(WTF::adoptPtr):
Add COMPILE_ASSERTs.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149341 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WEB SPEECH: need to identify the default voice per language
https://bugs.webkit.org/show_bug.cgi?id=115366

Reviewed by Tim Horton.

Source/WebCore: 

Use a WKSystemInterface method to determine which voice per language is the default voice.

When looking for a voice, there may not be a default at all, so we need to search until we
find a default.

* WebCore.exp.in:
* platform/mac/PlatformSpeechSynthesizerMac.mm:
(-[WebSpeechSynthesisWrapper speakUtterance:WebCore::]):
(WebCore::PlatformSpeechSynthesizer::initializeVoiceList):
* platform/mac/WebCoreSystemInterface.h:
* platform/mac/WebCoreSystemInterface.mm:

Source/WebKit/mac: 

* WebCoreSupport/WebSystemInterface.mm:
(InitWebCoreSystemInterface):

Source/WebKit2: 

* WebProcess/WebCoreSupport/mac/WebSystemInterface.mm:
(InitWebCoreSystemInterface):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149342 268f45cc-cd09-0410-ab3c-d52691b4dbfc