Title: [108639] trunk/Source/WebKit2
- Revision
- 108639
- Author
- [email protected]
- Date
- 2012-02-23 10:35:45 -0800 (Thu, 23 Feb 2012)
Log Message
[Qt] Build fix. Qt WebKit2 can not be compiled due to QtWebPageEventHandler.
https://bugs.webkit.org/show_bug.cgi?id=79335
Patch by Simon Hausmann <[email protected]> on 2012-02-23
Reviewed by Kenneth Rohde Christiansen.
In the upcoming Qt 5 builds the convenient setInputMethodHints method on QQuickItem
will be removed. There's no need for us to use it, we can implement passing the hints
to the input method right away in our re-implementation of inputMethodQuery, which works
with old and newer Qt 5 builds.
* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebView::inputMethodQuery):
* UIProcess/qt/QtWebPageEventHandler.cpp:
(QtWebPageEventHandler::updateTextInputState):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (108638 => 108639)
--- trunk/Source/WebKit2/ChangeLog 2012-02-23 18:15:49 UTC (rev 108638)
+++ trunk/Source/WebKit2/ChangeLog 2012-02-23 18:35:45 UTC (rev 108639)
@@ -1,3 +1,20 @@
+2012-02-23 Simon Hausmann <[email protected]>
+
+ [Qt] Build fix. Qt WebKit2 can not be compiled due to QtWebPageEventHandler.
+ https://bugs.webkit.org/show_bug.cgi?id=79335
+
+ Reviewed by Kenneth Rohde Christiansen.
+
+ In the upcoming Qt 5 builds the convenient setInputMethodHints method on QQuickItem
+ will be removed. There's no need for us to use it, we can implement passing the hints
+ to the input method right away in our re-implementation of inputMethodQuery, which works
+ with old and newer Qt 5 builds.
+
+ * UIProcess/API/qt/qquickwebview.cpp:
+ (QQuickWebView::inputMethodQuery):
+ * UIProcess/qt/QtWebPageEventHandler.cpp:
+ (QtWebPageEventHandler::updateTextInputState):
+
2012-02-23 Sergio Villar Senin <[email protected]>
[WK2][GTK] WebProcess SIGSEVs due to incorrect clipboard handling
Modified: trunk/Source/WebKit2/UIProcess/API/qt/qquickwebview.cpp (108638 => 108639)
--- trunk/Source/WebKit2/UIProcess/API/qt/qquickwebview.cpp 2012-02-23 18:15:49 UTC (rev 108638)
+++ trunk/Source/WebKit2/UIProcess/API/qt/qquickwebview.cpp 2012-02-23 18:35:45 UTC (rev 108639)
@@ -1233,6 +1233,8 @@
return QString(state.selectedText);
case Qt::ImMaximumTextLength:
return QVariant(); // No limit.
+ case Qt::ImHints:
+ return int(Qt::InputMethodHints(state.inputMethodHints));
default:
// Rely on the base implementation for ImEnabled, ImHints and ImPreferredLanguage.
return QQuickItem::inputMethodQuery(property);
Modified: trunk/Source/WebKit2/UIProcess/qt/QtWebPageEventHandler.cpp (108638 => 108639)
--- trunk/Source/WebKit2/UIProcess/qt/QtWebPageEventHandler.cpp 2012-02-23 18:15:49 UTC (rev 108638)
+++ trunk/Source/WebKit2/UIProcess/qt/QtWebPageEventHandler.cpp 2012-02-23 18:35:45 UTC (rev 108639)
@@ -462,8 +462,6 @@
const EditorState& editor = m_webPageProxy->editorState();
- m_webView->setInputMethodHints(Qt::InputMethodHints(editor.inputMethodHints));
-
if (!m_webView->hasFocus())
return;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes