compositionstart event should contain the text to be replaced
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 15 Jul 2013 23:28:50 +0000 (23:28 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 15 Jul 2013 23:28:50 +0000 (23:28 +0000)
commita629ee9a6260569d16e981f4d1e293410c2d6fa9
tree3deefb78cccb972ddeada09ca768ac8e43f5cac1
parent9cf028cfb3720e89d4e73f71a414ebc0118d8b34
compositionstart event should contain the text to be replaced
https://bugs.webkit.org/show_bug.cgi?id=118684

Reviewed by Alexey Proskuryakov.

Source/WebCore:

Merge https://chromium.googlesource.com/chromium/blink/+/9e04f728a95ad7d4783b1d31c3cdc1412dd6cc4d.

DOM3 level 3 specifies compositionstart event's data to be the text to be replaced.
http://www.w3.org/TR/DOM-Level-3-Events/#event-type-compositionstart

According to the author of the Blink change, IE10 on Windows and Firefox22 on Linux confirms
to the specified behavior.

Test: fast/events/ime-composition-events-001.html

* editing/Editor.cpp:
(WebCore::Editor::setComposition):

LayoutTests:

Add a test case.

* fast/events/ime-composition-events-001-expected.txt:
* fast/events/ime-composition-events-001.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@152668 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/events/ime-composition-events-001-expected.txt
LayoutTests/fast/events/ime-composition-events-001.html
Source/WebCore/ChangeLog
Source/WebCore/editing/Editor.cpp