2010-10-15 Andreas Kling <kling@webkit.org>
authorandreas.kling@nokia.com <andreas.kling@nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Oct 2010 13:56:24 +0000 (13:56 +0000)
committerandreas.kling@nokia.com <andreas.kling@nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 Oct 2010 13:56:24 +0000 (13:56 +0000)
        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Unbreak scrolling the ContentsLayer with QWebView

        r69777 broke scrolling the contents layer in QWebView by not restoring
        the painter clip after painting each part of the dirty region.

        * Api/qwebframe.cpp:
        (QWebFramePrivate::renderRelativeCoords):

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

WebKit/qt/Api/qwebframe.cpp
WebKit/qt/ChangeLog

index d2a871a..39e74d9 100644 (file)
@@ -328,13 +328,12 @@ void QWebFramePrivate::renderRelativeCoords(GraphicsContext* context, QWebFrame:
 
             QRect intersectedRect = clipRect.intersected(view->frameRect());
 
+            context->save();
             painter->setClipRect(clipRect, Qt::IntersectClip);
 
             int x = view->x();
             int y = view->y();
 
-            context->save();
-
             int scrollX = view->scrollX();
             int scrollY = view->scrollY();
 
index 9d72edb..616d558 100644 (file)
@@ -1,3 +1,15 @@
+2010-10-15  Andreas Kling  <kling@webkit.org>
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        [Qt] Unbreak scrolling the ContentsLayer with QWebView
+
+        r69777 broke scrolling the contents layer in QWebView by not restoring
+        the painter clip after painting each part of the dirty region.
+
+        * Api/qwebframe.cpp:
+        (QWebFramePrivate::renderRelativeCoords):
+
 2010-09-27 Dawit Alemayehu  <adawit@kde.org>
 
         Reviewed by Andreas Kling.