[chromium] Remove misleading double-if
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Mar 2012 22:27:24 +0000 (22:27 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 19 Mar 2012 22:27:24 +0000 (22:27 +0000)
https://bugs.webkit.org/show_bug.cgi?id=81557

Patch by Dana Jansens <danakj@chromium.org> on 2012-03-19
Reviewed by Adrienne Walker.

Simple code cleanup, no functionality change.

* platform/graphics/chromium/TiledLayerChromium.cpp:
(WebCore::TiledLayerChromium::prepareToUpdateTiles):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/chromium/TiledLayerChromium.cpp

index f963aa42fc219da4934c16d91981020c08f12d3b..1be9d85d31018fd8fb98bb17fee434d550b9d875 100644 (file)
@@ -1,3 +1,15 @@
+2012-03-19  Dana Jansens  <danakj@chromium.org>
+
+        [chromium] Remove misleading double-if
+        https://bugs.webkit.org/show_bug.cgi?id=81557
+
+        Reviewed by Adrienne Walker.
+
+        Simple code cleanup, no functionality change.
+
+        * platform/graphics/chromium/TiledLayerChromium.cpp:
+        (WebCore::TiledLayerChromium::prepareToUpdateTiles):
+
 2012-03-19  Eric Seidel  <eric@webkit.org>
 
         Fix WTF header include discipline in Chromium WebKit
index d3dd65becaa86816b3a1c0ccdcf2a686dcc29240..715b8bd342c53f7bc25ec0877edb12df3d00ef53 100644 (file)
@@ -474,8 +474,7 @@ void TiledLayerChromium::prepareToUpdateTiles(bool idle, int left, int top, int
     // Due to borders, when the paint rect is extended to tile boundaries, it
     // may end up overlapping more tiles than the original content rect. Record
     // the original tiles so we don't upload more tiles than necessary.
-    if (!m_paintRect.isEmpty())
-        m_requestedUpdateTilesRect = IntRect(left, top, right - left + 1, bottom - top + 1);
+    m_requestedUpdateTilesRect = IntRect(left, top, right - left + 1, bottom - top + 1);
 
     // Calling prepareToUpdate() calls into WebKit to paint, which may have the side
     // effect of disabling compositing, which causes our reference to the texture updater to be deleted.