Title: [110908] trunk/Source/WebCore
Revision
110908
Author
ander...@apple.com
Date
2012-03-15 16:30:48 -0700 (Thu, 15 Mar 2012)

Log Message

only some tiles rendered when zoomed in
https://bugs.webkit.org/show_bug.cgi?id=81282
<rdar://problem/11058898>

Reviewed by Andreas Kling.

* platform/graphics/ca/mac/TileCache.mm:
(WebCore::TileCache::rectForTileIndex):
Make sure that the tile cache bounds are scaled accordingly.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (110907 => 110908)


--- trunk/Source/WebCore/ChangeLog	2012-03-15 23:28:49 UTC (rev 110907)
+++ trunk/Source/WebCore/ChangeLog	2012-03-15 23:30:48 UTC (rev 110908)
@@ -1,3 +1,15 @@
+2012-03-15  Anders Carlsson  <ander...@apple.com>
+
+        only some tiles rendered when zoomed in
+        https://bugs.webkit.org/show_bug.cgi?id=81282
+        <rdar://problem/11058898>
+
+        Reviewed by Andreas Kling.
+
+        * platform/graphics/ca/mac/TileCache.mm:
+        (WebCore::TileCache::rectForTileIndex):
+        Make sure that the tile cache bounds are scaled accordingly.
+
 2012-03-15  Zeno Albisser  <z...@webkit.org>
 
         [Qt] RenderThemeQt::fileListNameForWidth should override function in base class RenderTheme. (r110560)

Modified: trunk/Source/WebCore/platform/graphics/ca/mac/TileCache.mm (110907 => 110908)


--- trunk/Source/WebCore/platform/graphics/ca/mac/TileCache.mm	2012-03-15 23:28:49 UTC (rev 110907)
+++ trunk/Source/WebCore/platform/graphics/ca/mac/TileCache.mm	2012-03-15 23:30:48 UTC (rev 110908)
@@ -238,8 +238,11 @@
 IntRect TileCache::rectForTileIndex(const TileIndex& tileIndex) const
 {
     IntRect rect(tileIndex.x() * m_tileSize.width(), tileIndex.y() * m_tileSize.height(), m_tileSize.width(), m_tileSize.height());
-    rect.intersect(bounds());
+    IntRect scaledBounds(bounds());
+    scaledBounds.scale(m_scale);
 
+    rect.intersect(scaledBounds);
+
     return rect;
 }
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to