2011-02-06 Robert Hogan <robert@webkit.org>
authorrobert@webkit.org <robert@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 6 Feb 2011 18:31:38 +0000 (18:31 +0000)
committerrobert@webkit.org <robert@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 6 Feb 2011 18:31:38 +0000 (18:31 +0000)
        Reviewed by Andreas Kling.

        [Qt] Remove unnecessary QRect assignment
        https://bugs.webkit.org/show_bug.cgi?id=53873

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

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

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

index 97df90c35f407ad50c0c51f174e400d8f4088e1a..8cc8b17f2cb621ce7b40977268f3264164455ad6 100644 (file)
@@ -360,7 +360,7 @@ void QWebFramePrivate::renderRelativeCoords(GraphicsContext* context, QWebFrame:
         for (int i = 0; i < vector.size(); ++i) {
             const QRect& clipRect = vector.at(i);
 
-            QRect intersectedRect = clipRect.intersected(view->frameRect());
+            QRect rect = clipRect.intersected(view->frameRect());
 
             context->save();
             painter->setClipRect(clipRect, Qt::IntersectClip);
@@ -371,7 +371,6 @@ void QWebFramePrivate::renderRelativeCoords(GraphicsContext* context, QWebFrame:
             int scrollX = view->scrollX();
             int scrollY = view->scrollY();
 
-            QRect rect = intersectedRect;
             context->translate(x, y);
             rect.translate(-x, -y);
             context->translate(-scrollX, -scrollY);
index b13c1ea3d8a9f78e0bc2cc2697c19441277e6b39..93a7cf8bfd4eafa22b75417f6aa437e5e4d37260 100644 (file)
@@ -1,3 +1,13 @@
+2011-02-06  Robert Hogan  <robert@webkit.org>
+
+        Reviewed by Andreas Kling.
+
+        [Qt] Remove unnecessary QRect assignment
+        https://bugs.webkit.org/show_bug.cgi?id=53873
+
+        * Api/qwebframe.cpp:
+        (QWebFramePrivate::renderRelativeCoords):
+
 2011-02-06  Robert Hogan  <robert@webkit.org>
 
         Reviewed by Andreas Kling.