Changeset 143423 in webkit


Ignore:
Timestamp:
Feb 19, 2013 6:28:34 PM (11 years ago)
Author:
Simon Fraser
Message:

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.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r143420 r143423  
     12013-02-19  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Fix TileCache tile size when zoomed on slow-scrolling site
     4        https://bugs.webkit.org/show_bug.cgi?id=110289
     5
     6        Reviewed by Tim Horton.
     7       
     8        Test that dumps tile coverage in a slow-scrolling, zoomed page.
     9
     10        * platform/mac-wk2/tiled-drawing/tile-size-slow-zoomed-expected.txt: Added.
     11        * platform/mac-wk2/tiled-drawing/tile-size-slow-zoomed.html: Added.
     12
    1132013-02-19  Hans Muller  <hmuller@adobe.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r143422 r143423  
     12013-02-19  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Fix TileCache tile size when zoomed on slow-scrolling site
     4        https://bugs.webkit.org/show_bug.cgi?id=110289
     5
     6        Reviewed by Tim Horton.
     7       
     8        In slow scrolling mode, we use the tile coverage rect as the tile size
     9        (so a single tile covers the viewport). When zoomed, the tile coverage rect
     10        shrinks relative to the TileCache, so scale the tile size back up.
     11
     12        Test: platform/mac-wk2/tiled-drawing/tile-size-slow-zoomed.html
     13
     14        * platform/graphics/ca/mac/TileCache.mm:
     15        (WebCore::TileCache::tileSizeForCoverageRect):
     16
    1172013-02-19  Hayato Ito  <hayato@chromium.org>
    218
  • trunk/Source/WebCore/platform/graphics/ca/mac/TileCache.mm

    r141187 r143423  
    461461IntSize TileCache::tileSizeForCoverageRect(const IntRect& coverageRect) const
    462462{
    463     if (m_tileCoverage & CoverageForSlowScrolling)
    464         return coverageRect.size();
     463    if (m_tileCoverage & CoverageForSlowScrolling) {
     464        IntSize tileSize = coverageRect.size();
     465        tileSize.scale(m_scale);
     466        return tileSize;
     467    }
    465468
    466469    return IntSize(defaultTileCacheWidth, defaultTileCacheHeight);
Note: See TracChangeset for help on using the changeset viewer.