-
hans@chromium.org authored
https://bugs.webkit.org/show_bug.cgi?id=91743 Reviewed by Adam Barth. Source/WebCore: Implement the 'emma' attribute as described in the spec draft at http://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html Test: fast/speech/scripted/emma.html * Modules/speech/SpeechRecognitionResult.cpp: (WebCore::SpeechRecognitionResult::~SpeechRecognitionResult): (WebCore): (WebCore::SpeechRecognitionResult::emma): * Modules/speech/SpeechRecognitionResult.h: (WebCore): (SpeechRecognitionResult): * Modules/speech/SpeechRecognitionResult.idl: * WebCore.gypi: * bindings/v8/custom/V8SpeechRecognitionResultCustom.cpp: (WebCore): (WebCore::V8SpeechRecognitionResult::visitDOMWrapper): We need to add an implicit reference from the result object to the emma object to keep the latters DOM tree alive across garbage-collection. LayoutTests: Add layout test for the SpeechRecognitionResult.emma attribute. * fast/speech/scripted/emma.html: Added. * fast/speech/scripted/emma-expected.txt: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@123461 268f45cc-cd09-0410-ab3c-d52691b4dbfc
c4c8e389