Changing WebView.contentY and WebView.contentX does not redraw content
authorAndras Becsi <andras.becsi@digia.com>
Wed, 13 Feb 2013 14:22:54 +0000 (15:22 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 14 Feb 2013 16:51:49 +0000 (17:51 +0100)
commit7e5ca126b32d9106c737b2cc399b98378619ca63
treeefa5ba939f3b0a3d1f7fe3d4115cce4e99c0ed3e
parentca9b6836810d2f9535810790fcca86ab35834caa
Changing WebView.contentY and WebView.contentX does not redraw content

https://bugs.webkit.org/show_bug.cgi?id=108337
https://bugreports.qt-project.org/browse/QTBUG-29557

Reviewed by Jocelyn Turcotte.

We should not ignore content position changes unless pinch zoom or bounce-back
animation is ongoing.
This way we notify the web process about visible rect changes if the contentX
and contentY properties are used to programmatically scroll the content from QML.
One important usecase for this is when implementing scrollbars.

Change-Id: If54453081debee7ad9f8c003b1bd54c5b0927fc9
Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Source/WebKit2/UIProcess/qt/PageViewportControllerClientQt.cpp