Number type input should not handle mouse wheel events if it has no focus.
authortkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Mar 2011 01:40:22 +0000 (01:40 +0000)
committertkent@chromium.org <tkent@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Mar 2011 01:40:22 +0000 (01:40 +0000)
commite72a2e9c54b5ffc732803f3cbe7031133ffcfc95
treed355f344e586cf636ca5c88bcb29ce834c373664
parent0d40149dcb3b0c6dbf398a110019d39d2d107164
Number type input should not handle mouse wheel events if it has no focus.
https://bugs.webkit.org/show_bug.cgi?id=53638

Reviewed by Darin Adler.

Source/WebCore:

* html/TextFieldInputType.cpp:
(WebCore::TextFieldInputType::handleWheelEventForSpinButton): Check focused().

LayoutTests:

Add a test case.

* fast/forms/input-number-wheel-expected.txt:
* fast/forms/script-tests/input-number-wheel.js:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79951 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/forms/input-number-wheel-expected.txt
LayoutTests/fast/forms/script-tests/input-number-wheel.js
Source/WebCore/ChangeLog
Source/WebCore/html/TextFieldInputType.cpp