2010-04-27 Benjamin Poulain <benjamin.poulain@nokia.com>
authoreric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Apr 2010 19:33:58 +0000 (19:33 +0000)
committereric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Apr 2010 19:33:58 +0000 (19:33 +0000)
        Reviewed by Kenneth Rohde Christiansen.

        [Qt] QGraphicsWebView: Arrow keys scroll the graphics-view instead of the web-page
        https://bugs.webkit.org/show_bug.cgi?id=35834

        The scene should always have the size of the web view otherwhise it is
        possible to scroll the graphics view.

        * QtLauncher/webview.cpp:
        (WebViewGraphicsBased::resizeEvent):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@58321 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitTools/ChangeLog
WebKitTools/QtLauncher/webview.cpp

index 400f48d..1bbc748 100644 (file)
@@ -1,3 +1,16 @@
+2010-04-27  Benjamin Poulain  <benjamin.poulain@nokia.com>
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        [Qt] QGraphicsWebView: Arrow keys scroll the graphics-view instead of the web-page
+        https://bugs.webkit.org/show_bug.cgi?id=35834
+
+        The scene should always have the size of the web view otherwhise it is
+        possible to scroll the graphics view.
+
+        * QtLauncher/webview.cpp:
+        (WebViewGraphicsBased::resizeEvent):
+
 2010-04-27  Diego Gonzalez  <diegohcg@webkit.org>
 
         Unreviewed.
index bed815e..1467cf8 100644 (file)
@@ -99,6 +99,7 @@ void WebViewGraphicsBased::resizeEvent(QResizeEvent* event)
         return;
     QRectF rect(QPoint(0, 0), event->size());
     m_item->setGeometry(rect);
+    scene()->setSceneRect(rect);
 }
 
 void WebViewGraphicsBased::setFrameRateMeasurementEnabled(bool enabled)