Dispatch input event for Range element keyboard event
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Mar 2014 08:56:36 +0000 (08:56 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Mar 2014 08:56:36 +0000 (08:56 +0000)
commit0387edd73150c942da537d96c8db23b1501157bd
tree9f7e908d6a8eac88584638045e27754b71e6eb7d
parente5cf732be13c6479b4da9b8fb8fd1f71df755bb1
Dispatch input event for Range element keyboard event
https://bugs.webkit.org/show_bug.cgi?id=129929

Patch by Lorenzo Tilve <ltilve@igalia.com> on 2014-03-20
Reviewed by Kent Tamura.

For any value update, dispatch both input and change event.
Also removes extra dispatch change event, as event is dispatched
from TextFieldInputType:setValue.

Merged from Blink (patch by Habib Virji):
https://src.chromium.org/viewvc/blink?revision=168558&view=revision

Source/WebCore:

Test: fast/forms/range/range-keyboard-oninput-event.html

* html/RangeInputType.cpp:
(WebCore::RangeInputType::handleKeydownEvent):

LayoutTests:

* fast/forms/range/range-keyboard-oninput-event-expected.txt: Added.
* fast/forms/range/range-keyboard-oninput-event.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@165954 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/range/range-keyboard-oninput-event-expected.txt [new file with mode: 0644]
LayoutTests/fast/forms/range/range-keyboard-oninput-event.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/html/RangeInputType.cpp