Changeset 156301 in webkit


Ignore:
Timestamp:
Sep 23, 2013 3:16:44 PM (11 years ago)
Author:
Simon Fraser
Message:

REGRESSION (r155998): when zooming in, tiles are too small
https://bugs.webkit.org/show_bug.cgi?id=121765

Source/WebCore:

Reviewed by Dean Jackson.

In r155998 I made GraphicsLayerCA take root-relative transforms
into account when computing contentsScale, and landed a bunch of
new results which should actually have told me that I broke page
scaling.

We don't want to take page scale into account when computing contentsScale,
because we already do so, so ignore the transform on the layer that
applies page scale (the only transform it should ever has is the page scale).

  • platform/graphics/ca/GraphicsLayerCA.cpp:

(WebCore::GraphicsLayerCA::updateRootRelativeScale):

LayoutTests:

Reviewed by Dean Jackson.

Fix results of tests that showed that we had incorrect tiling
behavior on zooming.

  • platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-zoomed-expected.txt:
  • platform/mac-wk2/tiled-drawing/tile-size-slow-zoomed-expected.txt:
  • platform/mac-wk2/tiled-drawing/tiled-drawing-zoom-expected.txt:
  • platform/mac-wk2/tiled-drawing/tiled-drawing-zoom-scrolled-expected.txt:
  • platform/mac/compositing/tiling/tile-cache-zoomed-expected.txt:
Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r156297 r156301  
     12013-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
    1172013-09-23  Antonio Gomes  <a1.gomes@sisa.samsung.com>
    218
  • trunk/LayoutTests/platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-zoomed-expected.txt

    r155998 r156301  
    1818          (bounds 785.00 1700.00)
    1919          (drawsContent 1)
    20           (tile cache coverage 0, 193 387 x 290)
     20          (tile cache coverage 0, 0 445 x 667)
    2121          (tile size 512 x 512)
    22           (top left tile 0, 2 tiles grid 4 x 3)
     22          (top left tile 0, 0 tiles grid 2 x 3)
    2323          (children 1
    2424            (GraphicsLayer
  • trunk/LayoutTests/platform/mac-wk2/tiled-drawing/tile-size-slow-zoomed-expected.txt

    r155998 r156301  
    1414      (contentsScale 1.00)
    1515      (tile cache coverage 0, 0 461 x 344)
    16       (tile size 1335 x 995)
     16      (tile size 785 x 585)
    1717      (top left tile 0, 0 tiles grid 1 x 1)
    1818      (children 1
    1919        (GraphicsLayer
    2020          (visible rect 0.00, 0.00 0.00 x 0.00)
    21           (contentsScale 2.89)
     21          (contentsScale 1.70)
    2222        )
    2323      )
  • trunk/LayoutTests/platform/mac-wk2/tiled-drawing/tiled-drawing-zoom-expected.txt

    r155998 r156301  
    1313      (visible rect 0.00, 0.00 341.30 x 254.35)
    1414      (contentsScale 1.00)
    15       (tile cache coverage 0, 0 387 x 290)
     15      (tile cache coverage 0, 0 445 x 445)
    1616      (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)
    1818      (children 1
    1919        (GraphicsLayer
    2020          (visible rect 0.00, 0.00 0.00 x 0.00)
    21           (contentsScale 5.29)
     21          (contentsScale 2.30)
    2222        )
    2323      )
  • trunk/LayoutTests/platform/mac-wk2/tiled-drawing/tiled-drawing-zoom-scrolled-expected.txt

    r155998 r156301  
    1313      (visible rect 800.00, 1000.00 341.30 x 254.35)
    1414      (contentsScale 1.00)
    15       (tile cache coverage 774, 967 387 x 290)
     15      (tile cache coverage 667, 890 540 x 445)
    1616      (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)
    1818      (children 1
    1919        (GraphicsLayer
    2020          (visible rect 0.00, 0.00 0.00 x 0.00)
    21           (contentsScale 5.29)
     21          (contentsScale 2.30)
    2222        )
    2323      )
  • trunk/LayoutTests/platform/mac/compositing/tiling/tile-cache-zoomed-expected.txt

    r155998 r156301  
    1010      (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])
    1111      (visible rect 0.00, 0.00 490.63 x 365.63)
    12       (contentsScale 2.56)
     12      (contentsScale 1.60)
    1313      (children 1
    1414        (GraphicsLayer
     
    1818          (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])
    1919          (visible rect 0.00, 0.00 482.63 x 357.63)
    20           (contentsScale 2.56)
     20          (contentsScale 1.60)
    2121        )
    2222      )
  • trunk/Source/WebCore/ChangeLog

    r156297 r156301  
     12013-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
    1202013-09-23  Antonio Gomes  <a1.gomes@sisa.samsung.com>
    221
  • trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp

    r156291 r156301  
    10651065    if (haveTransformAnimation)
    10661066        transformFromRoot->multiply(maxScaleImpactTransform);
    1067     else {
     1067    else if (!appliesPageScale()) {
    10681068        TransformationMatrix unanimatedTransform = this->layerTransform(m_position);
    10691069        transformFromRoot->multiply(unanimatedTransform);
Note: See TracChangeset for help on using the changeset viewer.