[Qt] Horizontal scrollbars events are offseted making them difficult to use
authormichael.bruning <michael.bruning@digia.com>
Mon, 7 Jan 2013 10:09:16 +0000 (10:09 +0000)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 16 Jan 2013 17:00:11 +0000 (18:00 +0100)
commit3fdf1c130e7e108f26bb64ec5749c0283103f134
tree55dbcdabbcf93623821905bb43dff2816db20ddb
parent0ab6ee16c3bb723fe6827864b5b645d5a6f1babe
[Qt] Horizontal scrollbars events are offseted making them difficult to use

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

Reviewed by Allan Sandfeld Jensen.

Patch co-authored by Simon Hausmann.

Only copy the layout direction from the facade options if the
current option is Qt::LayoutDirectionAuto in order to prevent
misinterpretations as different layout direction when hit testing.

Tests added to tst_qwebview and tst_qgraphicswebview to verify
that the view actually is scrolled in the right direction.

* WidgetSupport/QStyleFacadeImp.cpp:
(WebKit::initGenericStyleOption):
* tests/qgraphicswebview/resources/scrolltest_page.html: Added.
* tests/qgraphicswebview/tst_qgraphicswebview.cpp:
(tst_QGraphicsWebView):
(tst_QGraphicsWebView::horizontalScrollbarTest):
* tests/qgraphicswebview/tst_qgraphicswebview.qrc:
* tests/qwebview/resources/scrolltest_page.html: Added.
* tests/qwebview/tst_qwebview.cpp:
(tst_QWebView):
(tst_QWebView::horizontalScrollbarTest):
* tests/qwebview/tst_qwebview.qrc:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@138933 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Change-Id: I3c8190858f4a0fcd0bf394056771f775677ba30e
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Source/WebKit/qt/ChangeLog
Source/WebKit/qt/WidgetSupport/QStyleFacadeImp.cpp
Source/WebKit/qt/tests/qgraphicswebview/resources/scrolltest_page.html [new file with mode: 0644]
Source/WebKit/qt/tests/qgraphicswebview/tst_qgraphicswebview.cpp
Source/WebKit/qt/tests/qgraphicswebview/tst_qgraphicswebview.qrc
Source/WebKit/qt/tests/qwebview/resources/scrolltest_page.html [new file with mode: 0644]
Source/WebKit/qt/tests/qwebview/tst_qwebview.cpp
Source/WebKit/qt/tests/qwebview/tst_qwebview.qrc