2010-11-19 Kristian Amlie <kristian.amlie@nokia.com>
authorandreas.kling@nokia.com <andreas.kling@nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 20 Nov 2010 08:15:10 +0000 (08:15 +0000)
committerandreas.kling@nokia.com <andreas.kling@nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 20 Nov 2010 08:15:10 +0000 (08:15 +0000)
commitc2ca3959fadfec8582380a5976182cb2f75a3e31
treebd328eb29b789f93f0a24f06c4613db1be966948
parent9dd3a9b60491f38086c29f50dcd89aa29bb5178d
2010-11-19  Kristian Amlie  <kristian.amlie@nokia.com>

        Reviewed by Andreas Kling.

        Fixed handling of QInputMethodEvents with nonzero replacementLength.

        These types of events replace text that is already in the widget, but
        WebKit did not check for replacementLength at all.

        Also made sure that the preeditString is always respected, even if
        there is committed text. This is how QLineEdit does it.

        https://bugs.webkit.org/show_bug.cgi?id=49787

        * Api/qwebpage.cpp:
        (QWebPagePrivate::inputMethodEvent):
        * tests/qwebpage/tst_qwebpage.cpp:
        (tst_QWebPage::inputMethods):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@72471 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKit/qt/Api/qwebpage.cpp
WebKit/qt/ChangeLog
WebKit/qt/tests/qwebpage/tst_qwebpage.cpp