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
+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
// 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.