Changeset 156301 in webkit
- Timestamp:
- Sep 23, 2013, 3:16:44 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r156297 r156301 1 2013-09-23 Simon Fraser <simon.fraser@apple.com> 2 3 REGRESSION (r155998): when zooming in, tiles are too small 4 https://bugs.webkit.org/show_bug.cgi?id=121765 5 6 Reviewed by Dean Jackson. 7 8 Fix results of tests that showed that we had incorrect tiling 9 behavior on zooming. 10 11 * platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-zoomed-expected.txt: 12 * platform/mac-wk2/tiled-drawing/tile-size-slow-zoomed-expected.txt: 13 * platform/mac-wk2/tiled-drawing/tiled-drawing-zoom-expected.txt: 14 * platform/mac-wk2/tiled-drawing/tiled-drawing-zoom-scrolled-expected.txt: 15 * platform/mac/compositing/tiling/tile-cache-zoomed-expected.txt: 16 1 17 2013-09-23 Antonio Gomes <a1.gomes@sisa.samsung.com> 2 18 -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-zoomed-expected.txt
r155998 r156301 18 18 (bounds 785.00 1700.00) 19 19 (drawsContent 1) 20 (tile cache coverage 0, 193 387 x 290)20 (tile cache coverage 0, 0 445 x 667) 21 21 (tile size 512 x 512) 22 (top left tile 0, 2 tiles grid 4x 3)22 (top left tile 0, 0 tiles grid 2 x 3) 23 23 (children 1 24 24 (GraphicsLayer -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/tile-size-slow-zoomed-expected.txt
r155998 r156301 14 14 (contentsScale 1.00) 15 15 (tile cache coverage 0, 0 461 x 344) 16 (tile size 1335 x 995)16 (tile size 785 x 585) 17 17 (top left tile 0, 0 tiles grid 1 x 1) 18 18 (children 1 19 19 (GraphicsLayer 20 20 (visible rect 0.00, 0.00 0.00 x 0.00) 21 (contentsScale 2.89)21 (contentsScale 1.70) 22 22 ) 23 23 ) -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/tiled-drawing-zoom-expected.txt
r155998 r156301 13 13 (visible rect 0.00, 0.00 341.30 x 254.35) 14 14 (contentsScale 1.00) 15 (tile cache coverage 0, 0 387 x 290)15 (tile cache coverage 0, 0 445 x 445) 16 16 (tile size 512 x 512) 17 (top left tile 0, 0 tiles grid 4 x 3)17 (top left tile 0, 0 tiles grid 2 x 2) 18 18 (children 1 19 19 (GraphicsLayer 20 20 (visible rect 0.00, 0.00 0.00 x 0.00) 21 (contentsScale 5.29)21 (contentsScale 2.30) 22 22 ) 23 23 ) -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/tiled-drawing-zoom-scrolled-expected.txt
r155998 r156301 13 13 (visible rect 800.00, 1000.00 341.30 x 254.35) 14 14 (contentsScale 1.00) 15 (tile cache coverage 774, 967 387 x 290)15 (tile cache coverage 667, 890 540 x 445) 16 16 (tile size 512 x 512) 17 (top left tile 8, 10 tiles grid 4 x 3)17 (top left tile 3, 4 tiles grid 3 x 2) 18 18 (children 1 19 19 (GraphicsLayer 20 20 (visible rect 0.00, 0.00 0.00 x 0.00) 21 (contentsScale 5.29)21 (contentsScale 2.30) 22 22 ) 23 23 ) -
trunk/LayoutTests/platform/mac/compositing/tiling/tile-cache-zoomed-expected.txt
r155998 r156301 10 10 (transform [1.60 0.00 0.00 0.00] [0.00 1.60 0.00 0.00] [0.00 0.00 1.00 0.00] [0.00 0.00 0.00 1.00]) 11 11 (visible rect 0.00, 0.00 490.63 x 365.63) 12 (contentsScale 2.56)12 (contentsScale 1.60) 13 13 (children 1 14 14 (GraphicsLayer … … 18 18 (transform [1.00 0.00 0.00 0.00] [0.00 1.00 0.00 0.00] [0.00 0.00 1.00 0.00] [0.00 0.00 1.00 1.00]) 19 19 (visible rect 0.00, 0.00 482.63 x 357.63) 20 (contentsScale 2.56)20 (contentsScale 1.60) 21 21 ) 22 22 ) -
trunk/Source/WebCore/ChangeLog
r156297 r156301 1 2013-09-23 Simon Fraser <simon.fraser@apple.com> 2 3 REGRESSION (r155998): when zooming in, tiles are too small 4 https://bugs.webkit.org/show_bug.cgi?id=121765 5 6 Reviewed by Dean Jackson. 7 8 In r155998 I made GraphicsLayerCA take root-relative transforms 9 into account when computing contentsScale, and landed a bunch of 10 new results which should actually have told me that I broke page 11 scaling. 12 13 We don't want to take page scale into account when computing contentsScale, 14 because we already do so, so ignore the transform on the layer that 15 applies page scale (the only transform it should ever has is the page scale). 16 17 * platform/graphics/ca/GraphicsLayerCA.cpp: 18 (WebCore::GraphicsLayerCA::updateRootRelativeScale): 19 1 20 2013-09-23 Antonio Gomes <a1.gomes@sisa.samsung.com> 2 21 -
trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp
r156291 r156301 1065 1065 if (haveTransformAnimation) 1066 1066 transformFromRoot->multiply(maxScaleImpactTransform); 1067 else {1067 else if (!appliesPageScale()) { 1068 1068 TransformationMatrix unanimatedTransform = this->layerTransform(m_position); 1069 1069 transformFromRoot->multiply(unanimatedTransform);
Note:
See TracChangeset
for help on using the changeset viewer.