Input[type=number] should step by 1. by default qtwebkit-2.1-week12-1 qtwebkit-2.1-week13 qtwebkit-2.1-week14
authorLuiz Agostini <luiz.agostini@openbossa.org>
Thu, 31 Mar 2011 18:10:33 +0000 (15:10 -0300)
committerLuiz Agostini <luiz.agostini@openbossa.org>
Thu, 31 Mar 2011 18:27:51 +0000 (15:27 -0300)
commit5213e35e04f4e32ec8d9739b1481983dde536cea
treea178d562fea3832c0730242875de10eadb245b38
parent3d8aeee68ff7943cc50e4b321b1071195b671d0a
Input[type=number] should step by 1. by default
https://bugs.webkit.org/show_bug.cgi?id=56054

Patch by Fabrizio Machado <fabrizio.machado@nokia.com> on 2011-03-29
Reviewed by Laszlo Gombos.

If current value of input element is not finite when stepping up/down, set it current to zero
and then set current's value on the input element.  This prevents a garbage value from appearing
the input box after user activates and presses up/down key.

Test:  no test, this fix already exists in trunk, we are cherry picking the needed code for 2.1.x branch

* html/HTMLInputElement.cpp:
(HTMLInputElement::stepUpFromRenderer):
WebCore/ChangeLog
WebCore/html/HTMLInputElement.cpp