2011-05-19 Naoki Takano <takano.naoki@gmail.com>
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 May 2011 06:37:01 +0000 (06:37 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 May 2011 06:37:01 +0000 (06:37 +0000)
commite170cedd039cc4f05b80700a62a1cd5f4799f2bc
treea66b8e62a3077bcf6b48d940d77e4f8cc76e3d7b
parent8d8d229bbbf77fd02f00b52bd3528c9b4d9337bb
2011-05-19  Naoki Takano  <takano.naoki@gmail.com>

        Reviewed by Kent Tamura.

        Fix a problem that updating HTMLInputElement::value sets the cursor to a wrong position.
        https://bugs.webkit.org/show_bug.cgi?id=61163

        Manual test input-number-localization.html.
        Because we can't assume any number formats in various WebKit ports.

        * html/HTMLInputElement.cpp:
        (WebCore::HTMLInputElement::setValue): The cursor must be the last position of visibleValue(), not m_value.
        * manual-tests/input-number-localization.html: Added manual test to check the cursor correctly moved to the last poisition of the input.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@86926 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLInputElement.cpp
Source/WebCore/manual-tests/input-number-localization.html