[Qt] Clean up the input method handling
authorhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 5 Aug 2010 12:40:08 +0000 (12:40 +0000)
committerSimon Hausmann <simon.hausmann@nokia.com>
Thu, 5 Aug 2010 12:43:38 +0000 (14:43 +0200)
commitd22010b8f31d348848d25be618fa6f911dacf9da
tree0375da3a5859464eb7e178eb2a3834df5350f95d
parentb0aea678e59f43c4fcc556d736da887452be5aad
[Qt] Clean up the input method handling
https://bugs.webkit.org/show_bug.cgi?id=43545

Reviewed by Tor Arne Vestbø.

WebCore:

Changed input method hint interface to be more efficient by setting
all hints in one shot, like in QWidget.

* platform/qt/QWebPageClient.h:

WebKit/qt:

Replace the way of individually setting input method hints by
many calls to QWidget::setInputMethodHints with one single call.

This is more efficient by requiring less updates in the input
method hint.

* WebCoreSupport/EditorClientQt.cpp:
(WebCore::EditorClientQt::setInputMethodState):
* WebCoreSupport/PageClientQt.cpp:
(WebCore::PageClientQWidget::setInputMethodHints):
(WebCore::PageClientQGraphicsWidget::setInputMethodHints):
* WebCoreSupport/PageClientQt.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64737 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/platform/qt/QWebPageClient.h
WebKit/qt/ChangeLog
WebKit/qt/WebCoreSupport/EditorClientQt.cpp
WebKit/qt/WebCoreSupport/PageClientQt.cpp
WebKit/qt/WebCoreSupport/PageClientQt.h