Changeset 143423 in webkit
- Timestamp:
- Feb 19, 2013 6:28:34 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r143420 r143423 1 2013-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 1 13 2013-02-19 Hans Muller <hmuller@adobe.com> 2 14 -
trunk/Source/WebCore/ChangeLog
r143422 r143423 1 2013-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 1 17 2013-02-19 Hayato Ito <hayato@chromium.org> 2 18 -
trunk/Source/WebCore/platform/graphics/ca/mac/TileCache.mm
r141187 r143423 461 461 IntSize TileCache::tileSizeForCoverageRect(const IntRect& coverageRect) const 462 462 { 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 } 465 468 466 469 return IntSize(defaultTileCacheWidth, defaultTileCacheHeight);
Note: See TracChangeset
for help on using the changeset viewer.