Backport fix for #49787 to qtwebkit-2.1
authorAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Wed, 24 Nov 2010 22:02:17 +0000 (19:02 -0300)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Wed, 24 Nov 2010 22:02:17 +0000 (19:02 -0300)
commit85a22e12280f290c4eb0ccb4aec2ec9f13ffb7af
treef07813c6133c8e29ad37c63327c3d25e425f873f
parent0f2e0cc960f49a04e4bd86a7f36373697b660bda
Backport fix for #49787 to qtwebkit-2.1

Based on patches from Kristian Amlie <kristian.amlie@nokia.com>
(https://bugs.webkit.org/show_bug.cgi?id=49787)

Original Changelog:

    2010-11-24  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.

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

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