Fix TileCache tile size when zoomed on slow-scrolling site
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Feb 2013 02:28:34 +0000 (02:28 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Feb 2013 02:28:34 +0000 (02:28 +0000)
commitef6911222f4f7363c2038ee75833f90e06e5117d
treef27dc956c02df6bc12ba2e3f3de52db9fecb6382
parent2cbc2e71b0fa5ce0e4c7cffd44f4578b3869da79
Fix TileCache tile size when zoomed on slow-scrolling site
https://bugs.webkit.org/show_bug.cgi?id=110289

Source/WebCore:

Reviewed by Tim Horton.

In slow scrolling mode, we use the tile coverage rect as the tile size
(so a single tile covers the viewport). When zoomed, the tile coverage rect
shrinks relative to the TileCache, so scale the tile size back up.

Test: platform/mac-wk2/tiled-drawing/tile-size-slow-zoomed.html

* platform/graphics/ca/mac/TileCache.mm:
(WebCore::TileCache::tileSizeForCoverageRect):

LayoutTests:

Reviewed by Tim Horton.

Test that dumps tile coverage in a slow-scrolling, zoomed page.

* platform/mac-wk2/tiled-drawing/tile-size-slow-zoomed-expected.txt: Added.
* platform/mac-wk2/tiled-drawing/tile-size-slow-zoomed.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@143423 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/mac-wk2/tiled-drawing/tile-size-slow-zoomed-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac-wk2/tiled-drawing/tile-size-slow-zoomed.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/ca/mac/TileCache.mm