Speech input: Send text to correct element even if focus has changed
authorhans@chromium.org <hans@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Jan 2012 14:39:36 +0000 (14:39 +0000)
committerhans@chromium.org <hans@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Jan 2012 14:39:36 +0000 (14:39 +0000)
commitc003d13257d49e4a6592be8669c8e7bcd3aeab2c
tree6950756a7b33c5bad09815d4351d84a720ec14b3
parentf9c1b7c17f7e79800ac16d2ca7a9f61589521b76
Speech input: Send text to correct element even if focus has changed
https://bugs.webkit.org/show_bug.cgi?id=76071

Reviewed by Steve Block.

Source/WebCore:

Make sure that the text from speech input ends up in the correct
element even if focus has changed since the user clicked on it.

Test: fast/speech/change-focus.html

* html/shadow/TextControlInnerElements.cpp:
(WebCore::InputFieldSpeechButtonElement::setRecognitionResult):

LayoutTests:

Add test to make sure that the text from speech input ends up in the
correct element even if focus has moved away after the user clicked on it.

* fast/speech/change-focus-expected.txt: Added.
* fast/speech/change-focus.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104821 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/speech/change-focus-expected.txt [new file with mode: 0644]
LayoutTests/fast/speech/change-focus.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/html/shadow/TextControlInnerElements.cpp