Changeset 155998 in webkit
- Timestamp:
- Sep 17, 2013, 2:33:48 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 9 added
- 1 deleted
- 33 edited
- 13 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r155994 r155998 1 2013-09-17 Simon Fraser <simon.fraser@apple.com> 2 3 Hardware accelerated CSS transitions appear pixelated when scaled up using transform 4 https://bugs.webkit.org/show_bug.cgi?id=27684 5 <rdar://problem/6134606> 6 7 Reviewed by Dean Jackson. 8 9 New tests that dump contentsScale under various scaling scenarios: 10 11 * compositing/contents-scale/animating-expected.txt: Added. 12 * compositing/contents-scale/animating.html: Added. 13 * compositing/contents-scale/scaled-ancestor-expected.txt: Added. 14 * compositing/contents-scale/scaled-ancestor.html: Added. 15 * compositing/contents-scale/simple-scale-expected.txt: Added. 16 * compositing/contents-scale/simple-scale.html: Added. 17 * compositing/contents-scale/z-translate-expected.txt: Added. 18 * compositing/contents-scale/z-translate.html: Added. 19 20 These tests had Mac-specific results (which include visible rects and now 21 contents scale) in the cross-platform directory, so cleaned up the cross-platform 22 results and moved the Mac results to platform-mac. 23 24 * compositing/overflow/clipping-behaviour-change-is-not-propagated-to-descendants-expected.txt: 25 * compositing/overflow/clipping-behaviour-change-is-not-propagated-to-descendants2-expected.txt: 26 * compositing/visible-rect/2d-transformed-expected.txt: 27 * compositing/visible-rect/3d-transform-style-expected.txt: 28 * compositing/visible-rect/3d-transformed-expected.txt: 29 * compositing/visible-rect/animated-expected.txt: 30 * compositing/visible-rect/animated-from-none-expected.txt: 31 * compositing/visible-rect/clipped-by-viewport-expected.txt: 32 * compositing/visible-rect/clipped-visible-rect-expected.txt: 33 * compositing/visible-rect/flipped-preserve-3d-expected.txt: 34 * compositing/visible-rect/iframe-and-layers-expected.txt: 35 * compositing/visible-rect/iframe-no-layers-expected.txt: 36 * compositing/visible-rect/nested-transform-expected.txt: 37 * compositing/visible-rect/scrolled-expected.txt: 38 * platform/mac-wk2/compositing/visible-rect/iframe-no-layers-expected.txt: Removed. 39 * platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-zoomed-expected.txt: 40 * platform/mac-wk2/tiled-drawing/tile-coverage-after-scroll-expected.txt: 41 * platform/mac-wk2/tiled-drawing/tile-coverage-after-scroll-speculative-expected.txt: 42 * platform/mac-wk2/tiled-drawing/tile-coverage-scroll-to-bottom-expected.txt: 43 * platform/mac-wk2/tiled-drawing/tile-coverage-slow-scrolling-expected.txt: 44 * platform/mac-wk2/tiled-drawing/tile-coverage-speculative-expected.txt: 45 * platform/mac-wk2/tiled-drawing/tile-size-slow-zoomed-expected.txt: 46 * platform/mac-wk2/tiled-drawing/tiled-drawing-scroll-position-page-cache-restoration-expected.txt: 47 * platform/mac-wk2/tiled-drawing/tiled-drawing-zoom-expected.txt: 48 * platform/mac-wk2/tiled-drawing/tiled-drawing-zoom-scrolled-expected.txt: 49 * platform/mac-wk2/tiled-drawing/use-tiled-drawing-expected.txt: 50 * platform/mac/compositing/overflow/clipping-behaviour-change-is-not-propagated-to-descendants-expected.txt: Copied from LayoutTests/compositing/overflow/clipping-behaviour-change-is-not-propagated-to-descendants-expected.txt. 51 * platform/mac/compositing/overflow/clipping-behaviour-change-is-not-propagated-to-descendants2-expected.txt: Copied from LayoutTests/compositing/overflow/clipping-behaviour-change-is-not-propagated-to-descendants2-expected.txt. 52 * platform/mac/compositing/tiling/rotated-tiled-clamped-expected.txt: 53 * platform/mac/compositing/tiling/rotated-tiled-preserve3d-clamped-expected.txt: 54 * platform/mac/compositing/tiling/tile-cache-zoomed-expected.txt: 55 * platform/mac/compositing/visible-rect/2d-transformed-expected.txt: Copied from LayoutTests/compositing/visible-rect/2d-transformed-expected.txt. 56 * platform/mac/compositing/visible-rect/3d-transform-style-expected.txt: Copied from LayoutTests/compositing/visible-rect/3d-transform-style-expected.txt. 57 * platform/mac/compositing/visible-rect/3d-transformed-expected.txt: Copied from LayoutTests/compositing/visible-rect/3d-transformed-expected.txt. 58 * platform/mac/compositing/visible-rect/animated-expected.txt: Copied from LayoutTests/compositing/visible-rect/animated-expected.txt. 59 * platform/mac/compositing/visible-rect/animated-from-none-expected.txt: Copied from LayoutTests/compositing/visible-rect/animated-from-none-expected.txt. 60 * platform/mac/compositing/visible-rect/clipped-by-viewport-expected.txt: Copied from LayoutTests/compositing/visible-rect/clipped-by-viewport-expected.txt. 61 * platform/mac/compositing/visible-rect/clipped-visible-rect-expected.txt: Copied from LayoutTests/compositing/visible-rect/clipped-visible-rect-expected.txt. 62 * platform/mac/compositing/visible-rect/flipped-preserve-3d-expected.txt: Copied from LayoutTests/compositing/visible-rect/flipped-preserve-3d-expected.txt. 63 * platform/mac/compositing/visible-rect/iframe-and-layers-expected.txt: Copied from LayoutTests/compositing/visible-rect/iframe-and-layers-expected.txt. 64 * platform/mac/compositing/visible-rect/iframe-no-layers-expected.txt: 65 * platform/mac/compositing/visible-rect/nested-transform-expected.txt: Copied from LayoutTests/compositing/visible-rect/nested-transform-expected.txt. 66 * platform/mac/compositing/visible-rect/scrolled-expected.txt: Copied from LayoutTests/compositing/visible-rect/scrolled-expected.txt. 67 1 68 2013-09-17 Commit Queue <commit-queue@webkit.org> 2 69 -
trunk/LayoutTests/compositing/overflow/clipping-behaviour-change-is-not-propagated-to-descendants-expected.txt
r155994 r155998 6 6 (GraphicsLayer 7 7 (bounds 800.00 600.00) 8 (visible rect 0.00, 0.00 800.00 x 600.00)9 8 (children 1 10 9 (GraphicsLayer 11 10 (bounds 800.00 600.00) 12 11 (contentsOpaque 1) 13 (visible rect 0.00, 0.00 800.00 x 600.00)14 12 (children 3 15 13 (GraphicsLayer … … 17 15 (bounds 22.00 22.00) 18 16 (drawsContent 1) 19 (visible rect 0.00, 0.00 22.00 x 22.00)20 17 ) 21 18 (GraphicsLayer … … 23 20 (bounds 102.00 20.00) 24 21 (drawsContent 1) 25 (visible rect 0.00, 0.00 102.00 x 20.00)26 22 ) 27 23 (GraphicsLayer … … 29 25 (bounds 787.00 18.00) 30 26 (drawsContent 1) 31 (visible rect 0.00, 0.00 787.00 x 18.00)32 27 ) 33 28 ) -
trunk/LayoutTests/compositing/overflow/clipping-behaviour-change-is-not-propagated-to-descendants2-expected.txt
r155994 r155998 6 6 (GraphicsLayer 7 7 (bounds 800.00 600.00) 8 (visible rect 0.00, 0.00 800.00 x 600.00)9 8 (children 1 10 9 (GraphicsLayer 11 10 (bounds 800.00 600.00) 12 11 (contentsOpaque 1) 13 (visible rect 0.00, 0.00 800.00 x 600.00)14 12 (children 3 15 13 (GraphicsLayer … … 17 15 (bounds 22.00 22.00) 18 16 (drawsContent 1) 19 (visible rect 0.00, 0.00 22.00 x 22.00)20 17 ) 21 18 (GraphicsLayer … … 23 20 (bounds 102.00 20.00) 24 21 (drawsContent 1) 25 (visible rect 0.00, 0.00 102.00 x 20.00)26 22 ) 27 23 (GraphicsLayer … … 29 25 (bounds 778.00 18.00) 30 26 (drawsContent 1) 31 (visible rect 0.00, 0.00 778.00 x 18.00)32 27 ) 33 28 ) -
trunk/LayoutTests/compositing/visible-rect/2d-transformed-expected.txt
r155994 r155998 1 1 (GraphicsLayer 2 2 (bounds 800.00 600.00) 3 (visible rect 0.00, 0.00 800.00 x 600.00)4 3 (children 1 5 4 (GraphicsLayer 6 5 (bounds 800.00 600.00) 7 6 (contentsOpaque 1) 8 (visible rect 0.00, 0.00 800.00 x 600.00)9 7 (children 1 10 8 (GraphicsLayer 11 9 (position 8.00 8.00) 12 10 (bounds 502.00 202.00) 13 (visible rect 0.00, 0.00 502.00 x 202.00)14 11 (children 1 15 12 (GraphicsLayer 16 13 (position 1.00 1.00) 17 14 (bounds 500.00 200.00) 18 (visible rect 0.00, 0.00 500.00 x 200.00)19 15 (children 3 20 16 (GraphicsLayer … … 22 18 (contentsOpaque 1) 23 19 (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] [-100.00 0.00 0.00 1.00]) 24 (visible rect 100.00, 0.00 100.00 x 200.00)25 20 ) 26 21 (GraphicsLayer … … 28 23 (contentsOpaque 1) 29 24 (transform [0.71 0.71 0.00 0.00] [-0.71 0.71 0.00 0.00] [0.00 0.00 1.00 0.00] [150.00 0.00 0.00 1.00]) 30 (visible rect 0.00, 0.00 200.00 x 200.00)31 25 ) 32 26 (GraphicsLayer … … 34 28 (contentsOpaque 1) 35 29 (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] [400.00 0.00 0.00 1.00]) 36 (visible rect 0.00, 0.00 100.00 x 200.00)37 30 ) 38 31 ) -
trunk/LayoutTests/compositing/visible-rect/3d-transform-style-expected.txt
r155994 r155998 1 1 (GraphicsLayer 2 2 (bounds 800.00 600.00) 3 (visible rect 0.00, 0.00 800.00 x 600.00)4 3 (children 1 5 4 (GraphicsLayer 6 5 (bounds 800.00 600.00) 7 6 (contentsOpaque 1) 8 (visible rect 0.00, 0.00 800.00 x 600.00)9 7 (children 2 10 8 (GraphicsLayer 11 9 (position 18.00 10.00) 12 10 (bounds 204.00 204.00) 13 (visible rect 0.00, 0.00 204.00 x 204.00)14 11 (children 1 15 12 (GraphicsLayer … … 17 14 (bounds 200.00 200.00) 18 15 (childrenTransform [1.00 0.00 0.00 0.00] [0.00 1.00 0.00 0.00] [0.07 0.07 1.00 -0.00] [0.00 0.00 0.00 1.00]) 19 (visible rect 0.00, 0.00 200.00 x 200.00)20 16 (children 1 21 17 (GraphicsLayer 22 18 (bounds 200.00 0.00) 23 19 (preserves3D 1) 24 (visible rect 0.00, 0.00 0.00 x 0.00)25 20 (children 1 26 21 (GraphicsLayer … … 28 23 (contentsOpaque 1) 29 24 (transform [1.00 0.00 0.00 0.00] [0.00 0.91 0.42 0.00] [0.00 -0.42 0.91 0.00] [0.00 0.00 0.00 1.00]) 30 (visible rect 0.00, 0.00 213.67 x 200.68)31 25 ) 32 26 ) … … 39 33 (position 18.00 224.00) 40 34 (bounds 204.00 204.00) 41 (visible rect 0.00, 0.00 204.00 x 204.00)42 35 (children 1 43 36 (GraphicsLayer … … 45 38 (bounds 200.00 200.00) 46 39 (childrenTransform [1.00 0.00 0.00 0.00] [0.00 1.00 0.00 0.00] [0.07 0.07 1.00 -0.00] [0.00 0.00 0.00 1.00]) 47 (visible rect 0.00, 0.00 200.00 x 200.00)48 40 (children 1 49 41 (GraphicsLayer 50 42 (bounds 200.00 0.00) 51 43 (preserves3D 1) 52 (visible rect 0.00, 0.00 0.00 x 0.00)53 44 (children 1 54 45 (GraphicsLayer … … 56 47 (contentsOpaque 1) 57 48 (transform [0.91 0.00 0.42 0.00] [0.00 1.00 0.00 0.00] [-0.42 0.00 0.91 0.00] [0.00 0.00 0.00 1.00]) 58 (visible rect 0.00, 0.00 200.68 x 213.67)59 49 ) 60 50 ) -
trunk/LayoutTests/compositing/visible-rect/3d-transformed-expected.txt
r155994 r155998 1 1 (GraphicsLayer 2 2 (bounds 800.00 600.00) 3 (visible rect 0.00, 0.00 800.00 x 600.00)4 3 (children 1 5 4 (GraphicsLayer 6 5 (bounds 800.00 600.00) 7 6 (contentsOpaque 1) 8 (visible rect 0.00, 0.00 800.00 x 600.00)9 7 (children 2 10 8 (GraphicsLayer 11 9 (position 18.00 10.00) 12 10 (bounds 204.00 204.00) 13 (visible rect 0.00, 0.00 204.00 x 204.00)14 11 (children 1 15 12 (GraphicsLayer … … 17 14 (bounds 200.00 200.00) 18 15 (childrenTransform [1.00 0.00 0.00 0.00] [0.00 1.00 0.00 0.00] [0.07 0.07 1.00 -0.00] [0.00 0.00 0.00 1.00]) 19 (visible rect 0.00, 0.00 200.00 x 200.00)20 16 (children 1 21 17 (GraphicsLayer … … 24 20 (contentsOpaque 1) 25 21 (transform [1.00 0.00 0.00 0.00] [0.00 0.71 0.71 0.00] [0.00 -0.71 0.71 0.00] [0.00 0.00 0.00 1.00]) 26 (visible rect 0.00, 0.00 220.62 x 218.46)27 22 ) 28 23 ) … … 33 28 (position 18.00 224.00) 34 29 (bounds 204.00 204.00) 35 (visible rect 0.00, 0.00 204.00 x 204.00)36 30 (children 1 37 31 (GraphicsLayer … … 39 33 (bounds 200.00 200.00) 40 34 (childrenTransform [1.00 0.00 0.00 0.00] [0.00 1.00 0.00 0.00] [0.07 0.07 1.00 -0.00] [0.00 0.00 0.00 1.00]) 41 (visible rect 0.00, 0.00 200.00 x 200.00)42 35 (children 1 43 36 (GraphicsLayer … … 46 39 (contentsOpaque 1) 47 40 (transform [0.71 0.00 0.71 0.00] [0.00 1.00 0.00 0.00] [-0.71 0.00 0.71 0.00] [0.00 0.00 0.00 1.00]) 48 (visible rect 0.00, 0.00 218.46 x 220.62)49 41 ) 50 42 ) -
trunk/LayoutTests/compositing/visible-rect/animated-expected.txt
r155994 r155998 1 1 (GraphicsLayer 2 2 (bounds 800.00 600.00) 3 (visible rect 0.00, 0.00 800.00 x 600.00)4 3 (children 1 5 4 (GraphicsLayer 6 5 (bounds 800.00 600.00) 7 6 (contentsOpaque 1) 8 (visible rect 0.00, 0.00 800.00 x 600.00)9 7 (children 1 10 8 (GraphicsLayer 11 9 (position 8.00 8.00) 12 10 (bounds 502.00 202.00) 13 (visible rect 0.00, 0.00 502.00 x 202.00)14 11 (children 1 15 12 (GraphicsLayer 16 13 (position 1.00 1.00) 17 14 (bounds 500.00 200.00) 18 (visible rect 0.00, 0.00 500.00 x 200.00)19 15 (children 1 20 16 (GraphicsLayer … … 22 18 (contentsOpaque 1) 23 19 (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] [-100.00 0.00 0.00 1.00]) 24 (visible rect 100.00, 0.00 100.00 x 200.00)25 20 ) 26 21 ) -
trunk/LayoutTests/compositing/visible-rect/animated-from-none-expected.txt
r155994 r155998 1 1 (GraphicsLayer 2 2 (bounds 800.00 600.00) 3 (visible rect 0.00, 0.00 800.00 x 600.00)4 3 (children 1 5 4 (GraphicsLayer 6 5 (bounds 800.00 600.00) 7 6 (contentsOpaque 1) 8 (visible rect 0.00, 0.00 800.00 x 600.00)9 7 (children 1 10 8 (GraphicsLayer 11 9 (position 8.00 8.00) 12 10 (bounds 502.00 202.00) 13 (visible rect 0.00, 0.00 502.00 x 202.00)14 11 (children 1 15 12 (GraphicsLayer 16 13 (position 1.00 1.00) 17 14 (bounds 500.00 200.00) 18 (visible rect 0.00, 0.00 500.00 x 200.00)19 15 (children 1 20 16 (GraphicsLayer … … 22 18 (bounds 200.00 200.00) 23 19 (contentsOpaque 1) 24 (visible rect 100.00, 0.00 100.00 x 200.00)25 20 ) 26 21 ) -
trunk/LayoutTests/compositing/visible-rect/clipped-by-viewport-expected.txt
r155994 r155998 1 1 (GraphicsLayer 2 2 (bounds 800.00 600.00) 3 (visible rect 0.00, 0.00 800.00 x 600.00)4 3 (children 1 5 4 (GraphicsLayer 6 5 (bounds 800.00 600.00) 7 6 (contentsOpaque 1) 8 (visible rect 0.00, 0.00 800.00 x 600.00)9 7 (children 2 10 8 (GraphicsLayer … … 13 11 (contentsOpaque 1) 14 12 (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]) 15 (visible rect 100.00, 120.00 100.00 x 80.00)16 13 ) 17 14 (GraphicsLayer … … 20 17 (contentsOpaque 1) 21 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]) 22 (visible rect 100.00, 0.00 100.00 x 200.00)23 19 ) 24 20 ) -
trunk/LayoutTests/compositing/visible-rect/clipped-visible-rect-expected.txt
r155994 r155998 1 1 (GraphicsLayer 2 2 (bounds 800.00 600.00) 3 (visible rect 0.00, 0.00 800.00 x 600.00)4 3 (children 1 5 4 (GraphicsLayer 6 5 (bounds 800.00 600.00) 7 6 (contentsOpaque 1) 8 (visible rect 0.00, 0.00 800.00 x 600.00)9 7 (children 1 10 8 (GraphicsLayer 11 9 (position 8.00 8.00) 12 10 (bounds 502.00 202.00) 13 (visible rect 0.00, 0.00 502.00 x 202.00)14 11 (children 1 15 12 (GraphicsLayer 16 13 (position 1.00 1.00) 17 14 (bounds 500.00 200.00) 18 (visible rect 0.00, 0.00 500.00 x 200.00)19 15 (children 3 20 16 (GraphicsLayer … … 23 19 (contentsOpaque 1) 24 20 (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]) 25 (visible rect 100.00, 0.00 100.00 x 200.00)26 21 ) 27 22 (GraphicsLayer … … 30 25 (contentsOpaque 1) 31 26 (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]) 32 (visible rect 0.00, 0.00 200.00 x 200.00)33 27 ) 34 28 (GraphicsLayer … … 37 31 (contentsOpaque 1) 38 32 (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]) 39 (visible rect 0.00, 0.00 100.00 x 200.00)40 33 ) 41 34 ) -
trunk/LayoutTests/compositing/visible-rect/flipped-preserve-3d-expected.txt
r155994 r155998 7 7 (GraphicsLayer 8 8 (bounds 785.00 615.00) 9 (visible rect 0.00, 0.00 785.00 x 600.00)10 9 (children 1 11 10 (GraphicsLayer 12 11 (bounds 785.00 615.00) 13 12 (contentsOpaque 1) 14 (visible rect 0.00, 0.00 785.00 x 600.00)15 13 (children 1 16 14 (GraphicsLayer … … 18 16 (bounds 602.00 602.00) 19 17 (childrenTransform [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 0.00 1.00]) 20 (visible rect 0.00, 0.00 602.00 x 587.00)21 18 (children 1 22 19 (GraphicsLayer … … 26 23 (preserves3D 1) 27 24 (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 0.00 1.00]) 28 (visible rect 0.00, 0.00 440.00 x 440.00)29 25 (children 1 30 26 (GraphicsLayer … … 32 28 (contentsOpaque 1) 33 29 (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 0.00 1.00]) 34 (visible rect 0.00, 0.00 420.00 x 420.00)35 30 (children 1 36 31 (GraphicsLayer 37 32 (bounds 420.00 420.00) 38 (visible rect 0.00, 0.00 420.00 x 420.00)39 33 (children 1 40 34 (GraphicsLayer … … 42 36 (bounds 418.00 510.00) 43 37 (contentsOpaque 1) 44 (visible rect 0.00, 90.00 418.00 x 420.00)45 38 (children 1 46 39 (GraphicsLayer 47 40 (bounds 418.00 510.00) 48 (visible rect 0.00, 90.00 418.00 x 420.00)49 41 (children 3 50 42 (GraphicsLayer … … 54 46 (usingTiledLayer 1) 55 47 (drawsContent 1) 56 (visible rect 3000.00, 90.00 418.00 x 30.00)57 48 ) 58 49 (GraphicsLayer … … 62 53 (usingTiledLayer 1) 63 54 (drawsContent 1) 64 (visible rect 3000.00, 0.00 418.00 x 120.00)65 55 ) 66 56 (GraphicsLayer … … 70 60 (usingTiledLayer 1) 71 61 (drawsContent 1) 72 (visible rect 3000.00, 0.00 418.00 x 120.00)73 62 ) 74 63 ) -
trunk/LayoutTests/compositing/visible-rect/iframe-and-layers-expected.txt
r155994 r155998 2 2 (GraphicsLayer 3 3 (bounds 1508.00 1516.00) 4 (visible rect 0.00, 0.00 785.00 x 585.00)5 4 (children 1 6 5 (GraphicsLayer 7 6 (bounds 1508.00 1516.00) 8 7 (contentsOpaque 1) 9 (visible rect 0.00, 0.00 785.00 x 585.00)10 8 (children 2 11 9 (GraphicsLayer … … 13 11 (bounds 360.00 210.00) 14 12 (drawsContent 1) 15 (visible rect 0.00, 0.00 360.00 x 210.00)16 13 (children 1 17 14 (GraphicsLayer 18 15 (position 30.00 30.00) 19 (visible rect 0.00, 0.00 0.00 x 0.00)20 16 (children 1 21 17 (GraphicsLayer 22 18 (bounds 285.00 135.00) 23 (visible rect 0.00, 0.00 285.00 x 135.00)24 19 (children 1 25 20 (GraphicsLayer 26 (visible rect 0.00, 0.00 0.00 x 0.00)27 21 (children 1 28 22 (GraphicsLayer 29 23 (bounds 1508.00 1516.00) 30 (visible rect 0.00, 0.00 285.00 x 135.00)31 24 (children 1 32 25 (GraphicsLayer 33 26 (bounds 1508.00 1516.00) 34 27 (drawsContent 1) 35 (visible rect 0.00, 0.00 285.00 x 135.00)36 28 (children 1 37 29 (GraphicsLayer … … 41 33 (drawsContent 1) 42 34 (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]) 43 (visible rect 0.00, 0.00 100.00 x 127.00)44 35 ) 45 36 ) … … 60 51 (contentsOpaque 1) 61 52 (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]) 62 (visible rect 0.00, 0.00 200.00 x 200.00)63 53 ) 64 54 ) -
trunk/LayoutTests/compositing/visible-rect/iframe-no-layers-expected.txt
r146531 r155998 2 2 (GraphicsLayer 3 3 (bounds 1508.00 1516.00) 4 (visible rect 0.00, 0.00 285.00 x 135.00)5 4 (children 1 6 5 (GraphicsLayer 7 6 (bounds 1508.00 1516.00) 8 7 (contentsOpaque 1) 9 (visible rect 0.00, 0.00 285.00 x 135.00)10 8 (children 1 11 9 (GraphicsLayer … … 15 13 (drawsContent 1) 16 14 (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]) 17 (visible rect 0.00, 0.00 100.00 x 127.00)18 15 ) 19 16 ) -
trunk/LayoutTests/compositing/visible-rect/nested-transform-expected.txt
r155994 r155998 1 1 (GraphicsLayer 2 2 (bounds 785.00 669.00) 3 (visible rect 0.00, 0.00 785.00 x 600.00)4 3 (children 1 5 4 (GraphicsLayer 6 5 (bounds 785.00 669.00) 7 6 (contentsOpaque 1) 8 (visible rect 0.00, 0.00 785.00 x 600.00)9 7 (children 2 10 8 (GraphicsLayer 11 9 (position 18.00 10.00) 12 10 (bounds 304.00 304.00) 13 (visible rect 0.00, 0.00 304.00 x 304.00)14 11 (children 1 15 12 (GraphicsLayer … … 17 14 (bounds 300.00 300.00) 18 15 (childrenTransform [1.00 0.00 0.00 0.00] [0.00 1.00 0.00 0.00] [0.26 0.26 1.00 -0.00] [0.00 0.00 0.00 1.00]) 19 (visible rect 0.00, 0.00 300.00 x 300.00)20 16 (children 1 21 17 (GraphicsLayer … … 23 19 (preserves3D 1) 24 20 (transform [0.94 0.00 -0.34 0.00] [0.00 1.00 0.00 0.00] [0.34 0.00 0.94 0.00] [0.00 0.00 0.00 1.00]) 25 (visible rect 0.00, 0.00 0.00 x 0.00)26 21 (children 1 27 22 (GraphicsLayer … … 29 24 (preserves3D 1) 30 25 (transform [0.94 0.00 -0.34 0.00] [0.00 1.00 0.00 0.00] [0.34 0.00 0.94 0.00] [0.00 0.00 0.00 1.00]) 31 (visible rect 0.00, 0.00 0.00 x 0.00)32 26 (children 1 33 27 (GraphicsLayer … … 35 29 (contentsOpaque 1) 36 30 (transform [1.00 0.00 0.00 0.00] [0.00 0.82 0.57 0.00] [0.00 -0.57 0.82 0.00] [0.00 0.00 0.00 1.00]) 37 (visible rect 0.00, 0.00 500.00 x 369.91)38 31 ) 39 32 ) … … 48 41 (position 18.00 324.00) 49 42 (bounds 304.00 304.00) 50 (visible rect 0.00, 0.00 304.00 x 276.00)51 43 (children 1 52 44 (GraphicsLayer … … 54 46 (bounds 300.00 300.00) 55 47 (childrenTransform [1.00 0.00 0.00 0.00] [0.00 1.00 0.00 0.00] [0.26 0.26 1.00 -0.00] [0.00 0.00 0.00 1.00]) 56 (visible rect 0.00, 0.00 300.00 x 274.00)57 48 (children 1 58 49 (GraphicsLayer 59 50 (bounds 300.00 0.00) 60 51 (preserves3D 1) 61 (visible rect 0.00, 0.00 0.00 x 0.00)62 52 (children 1 63 53 (GraphicsLayer … … 65 55 (preserves3D 1) 66 56 (transform [0.77 0.00 -0.64 0.00] [0.00 1.00 0.00 0.00] [0.64 0.00 0.77 0.00] [0.00 0.00 0.00 1.00]) 67 (visible rect 0.00, 0.00 0.00 x 0.00)68 57 (children 1 69 58 (GraphicsLayer … … 71 60 (contentsOpaque 1) 72 61 (transform [1.00 0.00 0.00 0.00] [0.00 0.82 0.57 0.00] [0.00 -0.57 0.82 0.00] [0.00 0.00 0.00 1.00]) 73 (visible rect 0.00, 0.00 500.00 x 351.87)74 62 ) 75 63 ) -
trunk/LayoutTests/compositing/visible-rect/scrolled-expected.txt
r155994 r155998 1 1 (GraphicsLayer 2 2 (bounds 1508.00 2008.00) 3 (visible rect 25.00, 200.00 785.00 x 585.00)4 3 (children 1 5 4 (GraphicsLayer 6 5 (bounds 1508.00 2008.00) 7 6 (contentsOpaque 1) 8 (visible rect 25.00, 200.00 785.00 x 585.00)9 7 (children 1 10 8 (GraphicsLayer … … 13 11 (contentsOpaque 1) 14 12 (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]) 15 (visible rect 17.00, 200.00 183.00 x 300.00)16 13 ) 17 14 ) -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/fixed-background/fixed-body-background-zoomed-expected.txt
r148104 r155998 18 18 (bounds 785.00 1700.00) 19 19 (drawsContent 1) 20 (tile cache coverage 0, 0 445 x 667)20 (tile cache coverage 0, 193 387 x 290) 21 21 (tile size 512 x 512) 22 (top left tile 0, 0 tiles grid 2x 3)22 (top left tile 0, 2 tiles grid 4 x 3) 23 23 (children 1 24 24 (GraphicsLayer -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/tile-coverage-after-scroll-expected.txt
r148089 r155998 2 2 (bounds 785.00 5021.00) 3 3 (visible rect 0.00, 3000.00 785.00 x 600.00) 4 (contentsScale 1.00) 4 5 (children 1 5 6 (GraphicsLayer … … 9 10 (backgroundColor #FFFFFF) 10 11 (visible rect 0.00, 3000.00 785.00 x 600.00) 12 (contentsScale 1.00) 11 13 (tile cache coverage 0, 2560 785 x 1536) 12 14 (tile size 512 x 512) … … 15 17 (GraphicsLayer 16 18 (visible rect 0.00, 0.00 0.00 x 0.00) 19 (contentsScale 1.00) 17 20 ) 18 21 ) -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/tile-coverage-after-scroll-speculative-expected.txt
r148089 r155998 2 2 (bounds 785.00 5021.00) 3 3 (visible rect 0.00, 3000.00 785.00 x 600.00) 4 (contentsScale 1.00) 4 5 (children 1 5 6 (GraphicsLayer … … 9 10 (backgroundColor #FFFFFF) 10 11 (visible rect 0.00, 3000.00 785.00 x 600.00) 12 (contentsScale 1.00) 11 13 (tile cache coverage 0, 2048 785 x 2560) 12 14 (tile size 512 x 512) … … 15 17 (GraphicsLayer 16 18 (visible rect 0.00, 0.00 0.00 x 0.00) 19 (contentsScale 1.00) 17 20 ) 18 21 ) -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/tile-coverage-scroll-to-bottom-expected.txt
r148089 r155998 2 2 (bounds 785.00 5021.00) 3 3 (visible rect 0.00, 4421.00 785.00 x 600.00) 4 (contentsScale 1.00) 4 5 (children 1 5 6 (GraphicsLayer … … 9 10 (backgroundColor #FFFFFF) 10 11 (visible rect 0.00, 4421.00 785.00 x 600.00) 12 (contentsScale 1.00) 11 13 (tile cache coverage 0, 4096 785 x 925) 12 14 (tile size 512 x 512) … … 15 17 (GraphicsLayer 16 18 (visible rect 0.00, 0.00 0.00 x 0.00) 19 (contentsScale 1.00) 17 20 ) 18 21 ) -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/tile-coverage-slow-scrolling-expected.txt
r141634 r155998 2 2 (bounds 800.00 600.00) 3 3 (visible rect 0.00, 0.00 800.00 x 600.00) 4 (contentsScale 1.00) 4 5 (children 1 5 6 (GraphicsLayer … … 9 10 (backgroundColor #FFFFFF) 10 11 (visible rect 0.00, 0.00 800.00 x 600.00) 12 (contentsScale 1.00) 11 13 (tile cache coverage 0, 0 800 x 600) 12 14 (tile size 800 x 600) … … 15 17 (GraphicsLayer 16 18 (visible rect 0.00, 0.00 0.00 x 0.00) 19 (contentsScale 1.00) 17 20 ) 18 21 ) -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/tile-coverage-speculative-expected.txt
r148089 r155998 2 2 (bounds 785.00 5021.00) 3 3 (visible rect 0.00, 0.00 785.00 x 600.00) 4 (contentsScale 1.00) 4 5 (children 1 5 6 (GraphicsLayer … … 9 10 (backgroundColor #FFFFFF) 10 11 (visible rect 0.00, 0.00 785.00 x 600.00) 12 (contentsScale 1.00) 11 13 (tile cache coverage 0, 0 785 x 2048) 12 14 (tile size 512 x 512) … … 15 17 (GraphicsLayer 16 18 (visible rect 0.00, 0.00 0.00 x 0.00) 19 (contentsScale 1.00) 17 20 ) 18 21 ) -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/tile-size-slow-zoomed-expected.txt
r143537 r155998 2 2 (bounds 1334.00 994.00) 3 3 (visible rect 0.00, 0.00 785.00 x 585.00) 4 (contentsScale 1.00) 4 5 (children 1 5 6 (GraphicsLayer … … 11 12 (transform [1.70 0.00 0.00 0.00] [0.00 1.70 0.00 0.00] [0.00 0.00 1.00 0.00] [0.00 0.00 0.00 1.00]) 12 13 (visible rect 0.00, 0.00 461.76 x 344.12) 14 (contentsScale 1.00) 13 15 (tile cache coverage 0, 0 461 x 344) 14 (tile size 785 x 585)16 (tile size 1335 x 995) 15 17 (top left tile 0, 0 tiles grid 1 x 1) 16 18 (children 1 17 19 (GraphicsLayer 18 20 (visible rect 0.00, 0.00 0.00 x 0.00) 21 (contentsScale 2.89) 19 22 ) 20 23 ) -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/tiled-drawing-scroll-position-page-cache-restoration-expected.txt
r142416 r155998 4 4 (bounds 5008.00 5016.00) 5 5 (visible rect 1000.00, 1000.00 785.00 x 585.00) 6 (contentsScale 1.00) 6 7 (children 1 7 8 (GraphicsLayer … … 11 12 (backgroundColor #FFFFFF) 12 13 (visible rect 1000.00, 1000.00 785.00 x 585.00) 14 (contentsScale 1.00) 13 15 (tile cache coverage 512, 0 2048 x 2560) 14 16 (tile size 512 x 512) … … 17 19 (GraphicsLayer 18 20 (visible rect 0.00, 0.00 0.00 x 0.00) 21 (contentsScale 1.00) 19 22 ) 20 23 ) -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/tiled-drawing-zoom-expected.txt
r148089 r155998 2 2 (bounds 1805.00 1345.00) 3 3 (visible rect 0.00, 0.00 785.00 x 585.00) 4 (contentsScale 1.00) 4 5 (children 1 5 6 (GraphicsLayer … … 11 12 (transform [2.30 0.00 0.00 0.00] [0.00 2.30 0.00 0.00] [0.00 0.00 1.00 0.00] [0.00 0.00 0.00 1.00]) 12 13 (visible rect 0.00, 0.00 341.30 x 254.35) 13 (tile cache coverage 0, 0 445 x 445) 14 (contentsScale 1.00) 15 (tile cache coverage 0, 0 387 x 290) 14 16 (tile size 512 x 512) 15 (top left tile 0, 0 tiles grid 2 x 2)17 (top left tile 0, 0 tiles grid 4 x 3) 16 18 (children 1 17 19 (GraphicsLayer 18 20 (visible rect 0.00, 0.00 0.00 x 0.00) 21 (contentsScale 5.29) 19 22 ) 20 23 ) -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/tiled-drawing-zoom-scrolled-expected.txt
r148089 r155998 2 2 (bounds 2778.00 4648.00) 3 3 (visible rect 1840.00, 2300.00 785.00 x 585.00) 4 (contentsScale 1.00) 4 5 (children 1 5 6 (GraphicsLayer … … 11 12 (transform [2.30 0.00 0.00 0.00] [0.00 2.30 0.00 0.00] [0.00 0.00 1.00 0.00] [0.00 0.00 0.00 1.00]) 12 13 (visible rect 800.00, 1000.00 341.30 x 254.35) 13 (tile cache coverage 667, 890 540 x 445) 14 (contentsScale 1.00) 15 (tile cache coverage 774, 967 387 x 290) 14 16 (tile size 512 x 512) 15 (top left tile 3, 4 tiles grid 3 x 2)17 (top left tile 8, 10 tiles grid 4 x 3) 16 18 (children 1 17 19 (GraphicsLayer 18 20 (visible rect 0.00, 0.00 0.00 x 0.00) 21 (contentsScale 5.29) 19 22 ) 20 23 ) -
trunk/LayoutTests/platform/mac-wk2/tiled-drawing/use-tiled-drawing-expected.txt
r148089 r155998 2 2 (bounds 1208.00 2021.00) 3 3 (visible rect 0.00, 0.00 785.00 x 585.00) 4 (contentsScale 1.00) 4 5 (children 1 5 6 (GraphicsLayer … … 9 10 (backgroundColor #FFFFFF) 10 11 (visible rect 0.00, 0.00 785.00 x 585.00) 12 (contentsScale 1.00) 11 13 (tile cache coverage 0, 0 1024 x 1024) 12 14 (tile size 512 x 512) … … 15 17 (GraphicsLayer 16 18 (visible rect 0.00, 0.00 0.00 x 0.00) 19 (contentsScale 1.00) 17 20 ) 18 21 ) -
trunk/LayoutTests/platform/mac/compositing/overflow/clipping-behaviour-change-is-not-propagated-to-descendants-expected.txt
r155995 r155998 7 7 (bounds 800.00 600.00) 8 8 (visible rect 0.00, 0.00 800.00 x 600.00) 9 (contentsScale 1.00) 9 10 (children 1 10 11 (GraphicsLayer … … 12 13 (contentsOpaque 1) 13 14 (visible rect 0.00, 0.00 800.00 x 600.00) 15 (contentsScale 1.00) 14 16 (children 3 15 17 (GraphicsLayer … … 18 20 (drawsContent 1) 19 21 (visible rect 0.00, 0.00 22.00 x 22.00) 22 (contentsScale 1.00) 20 23 ) 21 24 (GraphicsLayer … … 24 27 (drawsContent 1) 25 28 (visible rect 0.00, 0.00 102.00 x 20.00) 29 (contentsScale 1.00) 26 30 ) 27 31 (GraphicsLayer … … 30 34 (drawsContent 1) 31 35 (visible rect 0.00, 0.00 787.00 x 18.00) 36 (contentsScale 1.00) 32 37 ) 33 38 ) -
trunk/LayoutTests/platform/mac/compositing/overflow/clipping-behaviour-change-is-not-propagated-to-descendants2-expected.txt
r155995 r155998 7 7 (bounds 800.00 600.00) 8 8 (visible rect 0.00, 0.00 800.00 x 600.00) 9 (contentsScale 1.00) 9 10 (children 1 10 11 (GraphicsLayer … … 12 13 (contentsOpaque 1) 13 14 (visible rect 0.00, 0.00 800.00 x 600.00) 15 (contentsScale 1.00) 14 16 (children 3 15 17 (GraphicsLayer … … 18 20 (drawsContent 1) 19 21 (visible rect 0.00, 0.00 22.00 x 22.00) 22 (contentsScale 1.00) 20 23 ) 21 24 (GraphicsLayer … … 24 27 (drawsContent 1) 25 28 (visible rect 0.00, 0.00 102.00 x 20.00) 29 (contentsScale 1.00) 26 30 ) 27 31 (GraphicsLayer … … 30 34 (drawsContent 1) 31 35 (visible rect 0.00, 0.00 778.00 x 18.00) 36 (contentsScale 1.00) 32 37 ) 33 38 ) -
trunk/LayoutTests/platform/mac/compositing/tiling/rotated-tiled-clamped-expected.txt
r155994 r155998 2 2 (bounds 800.00 600.00) 3 3 (visible rect 0.00, 0.00 800.00 x 600.00) 4 (contentsScale 1.00) 4 5 (children 1 5 6 (GraphicsLayer … … 7 8 (contentsOpaque 1) 8 9 (visible rect 0.00, 0.00 800.00 x 600.00) 10 (contentsScale 1.00) 9 11 (children 1 10 12 (GraphicsLayer … … 12 14 (bounds 502.00 302.00) 13 15 (visible rect 0.00, 0.00 502.00 x 302.00) 16 (contentsScale 1.00) 14 17 (children 1 15 18 (GraphicsLayer … … 18 21 (childrenTransform [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 0.00 1.00]) 19 22 (visible rect 0.00, 0.00 500.00 x 300.00) 23 (contentsScale 1.00) 20 24 (children 1 21 25 (GraphicsLayer … … 28 32 (transform [0.17 0.00 -0.98 0.00] [0.00 1.00 0.00 0.00] [0.98 0.00 0.17 0.00] [0.00 0.00 0.00 1.00]) 29 33 (visible rect 0.00, 0.00 2800.00 x 300.00) 30 (tile cache coverage 0, 0 2800 x 300) 34 (contentsScale 1.00) 35 (tile cache coverage 0, 0 2799 x 299) 31 36 (tile size 512 x 512) 32 (top left tile 0, 0 tiles grid 6x 1)37 (top left tile 0, 0 tiles grid 5 x 1) 33 38 ) 34 39 ) -
trunk/LayoutTests/platform/mac/compositing/tiling/rotated-tiled-preserve3d-clamped-expected.txt
r155994 r155998 2 2 (bounds 800.00 600.00) 3 3 (visible rect 0.00, 0.00 800.00 x 600.00) 4 (contentsScale 1.00) 4 5 (children 1 5 6 (GraphicsLayer … … 7 8 (contentsOpaque 1) 8 9 (visible rect 0.00, 0.00 800.00 x 600.00) 10 (contentsScale 1.00) 9 11 (children 1 10 12 (GraphicsLayer … … 12 14 (bounds 502.00 302.00) 13 15 (visible rect 0.00, 0.00 502.00 x 302.00) 16 (contentsScale 1.00) 14 17 (children 1 15 18 (GraphicsLayer … … 18 21 (childrenTransform [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 0.00 1.00]) 19 22 (visible rect 0.00, 0.00 500.00 x 300.00) 23 (contentsScale 1.00) 20 24 (children 1 21 25 (GraphicsLayer … … 23 27 (preserves3D 1) 24 28 (visible rect 0.00, 0.00 0.00 x 0.00) 29 (contentsScale 1.00) 25 30 (children 1 26 31 (GraphicsLayer … … 33 38 (transform [0.17 0.00 -0.98 0.00] [0.00 1.00 0.00 0.00] [0.98 0.00 0.17 0.00] [0.00 0.00 0.00 1.00]) 34 39 (visible rect 0.00, 0.00 2800.00 x 300.00) 35 (tile cache coverage 0, 0 2800 x 300) 40 (contentsScale 1.00) 41 (tile cache coverage 0, 0 2799 x 299) 36 42 (tile size 512 x 512) 37 (top left tile 0, 0 tiles grid 6x 1)43 (top left tile 0, 0 tiles grid 5 x 1) 38 44 ) 39 45 ) -
trunk/LayoutTests/platform/mac/compositing/tiling/tile-cache-zoomed-expected.txt
r155994 r155998 2 2 (bounds 1932.00 4150.00) 3 3 (visible rect 0.00, 0.00 785.00 x 585.00) 4 (contentsScale 1.00) 4 5 (children 1 5 6 (GraphicsLayer … … 9 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]) 10 11 (visible rect 0.00, 0.00 490.63 x 365.63) 12 (contentsScale 2.56) 11 13 (children 1 12 14 (GraphicsLayer … … 16 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]) 17 19 (visible rect 0.00, 0.00 482.63 x 357.63) 20 (contentsScale 2.56) 18 21 ) 19 22 ) -
trunk/LayoutTests/platform/mac/compositing/visible-rect/2d-transformed-expected.txt
r155995 r155998 2 2 (bounds 800.00 600.00) 3 3 (visible rect 0.00, 0.00 800.00 x 600.00) 4 (contentsScale 1.00) 4 5 (children 1 5 6 (GraphicsLayer … … 7 8 (contentsOpaque 1) 8 9 (visible rect 0.00, 0.00 800.00 x 600.00) 10 (contentsScale 1.00) 9 11 (children 1 10 12 (GraphicsLayer … … 12 14 (bounds 502.00 202.00) 13 15 (visible rect 0.00, 0.00 502.00 x 202.00) 16 (contentsScale 1.00) 14 17 (children 1 15 18 (GraphicsLayer … … 17 20 (bounds 500.00 200.00) 18 21 (visible rect 0.00, 0.00 500.00 x 200.00) 22 (contentsScale 1.00) 19 23 (children 3 20 24 (GraphicsLayer … … 23 27 (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] [-100.00 0.00 0.00 1.00]) 24 28 (visible rect 100.00, 0.00 100.00 x 200.00) 29 (contentsScale 1.00) 25 30 ) 26 31 (GraphicsLayer … … 29 34 (transform [0.71 0.71 0.00 0.00] [-0.71 0.71 0.00 0.00] [0.00 0.00 1.00 0.00] [150.00 0.00 0.00 1.00]) 30 35 (visible rect 0.00, 0.00 200.00 x 200.00) 36 (contentsScale 1.00) 31 37 ) 32 38 (GraphicsLayer … … 35 41 (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] [400.00 0.00 0.00 1.00]) 36 42 (visible rect 0.00, 0.00 100.00 x 200.00) 43 (contentsScale 1.00) 37 44 ) 38 45 ) -
trunk/LayoutTests/platform/mac/compositing/visible-rect/3d-transform-style-expected.txt
r155995 r155998 2 2 (bounds 800.00 600.00) 3 3 (visible rect 0.00, 0.00 800.00 x 600.00) 4 (contentsScale 1.00) 4 5 (children 1 5 6 (GraphicsLayer … … 7 8 (contentsOpaque 1) 8 9 (visible rect 0.00, 0.00 800.00 x 600.00) 10 (contentsScale 1.00) 9 11 (children 2 10 12 (GraphicsLayer … … 12 14 (bounds 204.00 204.00) 13 15 (visible rect 0.00, 0.00 204.00 x 204.00) 16 (contentsScale 1.00) 14 17 (children 1 15 18 (GraphicsLayer … … 18 21 (childrenTransform [1.00 0.00 0.00 0.00] [0.00 1.00 0.00 0.00] [0.07 0.07 1.00 -0.00] [0.00 0.00 0.00 1.00]) 19 22 (visible rect 0.00, 0.00 200.00 x 200.00) 23 (contentsScale 1.00) 20 24 (children 1 21 25 (GraphicsLayer … … 23 27 (preserves3D 1) 24 28 (visible rect 0.00, 0.00 0.00 x 0.00) 29 (contentsScale 1.00) 25 30 (children 1 26 31 (GraphicsLayer … … 29 34 (transform [1.00 0.00 0.00 0.00] [0.00 0.91 0.42 0.00] [0.00 -0.42 0.91 0.00] [0.00 0.00 0.00 1.00]) 30 35 (visible rect 0.00, 0.00 213.67 x 200.68) 36 (contentsScale 0.93) 31 37 ) 32 38 ) … … 40 46 (bounds 204.00 204.00) 41 47 (visible rect 0.00, 0.00 204.00 x 204.00) 48 (contentsScale 1.00) 42 49 (children 1 43 50 (GraphicsLayer … … 46 53 (childrenTransform [1.00 0.00 0.00 0.00] [0.00 1.00 0.00 0.00] [0.07 0.07 1.00 -0.00] [0.00 0.00 0.00 1.00]) 47 54 (visible rect 0.00, 0.00 200.00 x 200.00) 55 (contentsScale 1.00) 48 56 (children 1 49 57 (GraphicsLayer … … 51 59 (preserves3D 1) 52 60 (visible rect 0.00, 0.00 0.00 x 0.00) 61 (contentsScale 1.00) 53 62 (children 1 54 63 (GraphicsLayer … … 57 66 (transform [0.91 0.00 0.42 0.00] [0.00 1.00 0.00 0.00] [-0.42 0.00 0.91 0.00] [0.00 0.00 0.00 1.00]) 58 67 (visible rect 0.00, 0.00 200.68 x 213.67) 68 (contentsScale 0.92) 59 69 ) 60 70 ) -
trunk/LayoutTests/platform/mac/compositing/visible-rect/3d-transformed-expected.txt
r155995 r155998 2 2 (bounds 800.00 600.00) 3 3 (visible rect 0.00, 0.00 800.00 x 600.00) 4 (contentsScale 1.00) 4 5 (children 1 5 6 (GraphicsLayer … … 7 8 (contentsOpaque 1) 8 9 (visible rect 0.00, 0.00 800.00 x 600.00) 10 (contentsScale 1.00) 9 11 (children 2 10 12 (GraphicsLayer … … 12 14 (bounds 204.00 204.00) 13 15 (visible rect 0.00, 0.00 204.00 x 204.00) 16 (contentsScale 1.00) 14 17 (children 1 15 18 (GraphicsLayer … … 18 21 (childrenTransform [1.00 0.00 0.00 0.00] [0.00 1.00 0.00 0.00] [0.07 0.07 1.00 -0.00] [0.00 0.00 0.00 1.00]) 19 22 (visible rect 0.00, 0.00 200.00 x 200.00) 23 (contentsScale 1.00) 20 24 (children 1 21 25 (GraphicsLayer … … 25 29 (transform [1.00 0.00 0.00 0.00] [0.00 0.71 0.71 0.00] [0.00 -0.71 0.71 0.00] [0.00 0.00 0.00 1.00]) 26 30 (visible rect 0.00, 0.00 220.62 x 218.46) 31 (contentsScale 0.92) 27 32 ) 28 33 ) … … 34 39 (bounds 204.00 204.00) 35 40 (visible rect 0.00, 0.00 204.00 x 204.00) 41 (contentsScale 1.00) 36 42 (children 1 37 43 (GraphicsLayer … … 40 46 (childrenTransform [1.00 0.00 0.00 0.00] [0.00 1.00 0.00 0.00] [0.07 0.07 1.00 -0.00] [0.00 0.00 0.00 1.00]) 41 47 (visible rect 0.00, 0.00 200.00 x 200.00) 48 (contentsScale 1.00) 42 49 (children 1 43 50 (GraphicsLayer … … 47 54 (transform [0.71 0.00 0.71 0.00] [0.00 1.00 0.00 0.00] [-0.71 0.00 0.71 0.00] [0.00 0.00 0.00 1.00]) 48 55 (visible rect 0.00, 0.00 218.46 x 220.62) 56 (contentsScale 0.91) 49 57 ) 50 58 ) -
trunk/LayoutTests/platform/mac/compositing/visible-rect/animated-expected.txt
r155995 r155998 2 2 (bounds 800.00 600.00) 3 3 (visible rect 0.00, 0.00 800.00 x 600.00) 4 (contentsScale 1.00) 4 5 (children 1 5 6 (GraphicsLayer … … 7 8 (contentsOpaque 1) 8 9 (visible rect 0.00, 0.00 800.00 x 600.00) 10 (contentsScale 1.00) 9 11 (children 1 10 12 (GraphicsLayer … … 12 14 (bounds 502.00 202.00) 13 15 (visible rect 0.00, 0.00 502.00 x 202.00) 16 (contentsScale 1.00) 14 17 (children 1 15 18 (GraphicsLayer … … 17 20 (bounds 500.00 200.00) 18 21 (visible rect 0.00, 0.00 500.00 x 200.00) 22 (contentsScale 1.00) 19 23 (children 1 20 24 (GraphicsLayer … … 23 27 (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] [-100.00 0.00 0.00 1.00]) 24 28 (visible rect 100.00, 0.00 100.00 x 200.00) 29 (contentsScale 1.00) 25 30 ) 26 31 ) -
trunk/LayoutTests/platform/mac/compositing/visible-rect/animated-from-none-expected.txt
r155995 r155998 2 2 (bounds 800.00 600.00) 3 3 (visible rect 0.00, 0.00 800.00 x 600.00) 4 (contentsScale 1.00) 4 5 (children 1 5 6 (GraphicsLayer … … 7 8 (contentsOpaque 1) 8 9 (visible rect 0.00, 0.00 800.00 x 600.00) 10 (contentsScale 1.00) 9 11 (children 1 10 12 (GraphicsLayer … … 12 14 (bounds 502.00 202.00) 13 15 (visible rect 0.00, 0.00 502.00 x 202.00) 16 (contentsScale 1.00) 14 17 (children 1 15 18 (GraphicsLayer … … 17 20 (bounds 500.00 200.00) 18 21 (visible rect 0.00, 0.00 500.00 x 200.00) 22 (contentsScale 1.00) 19 23 (children 1 20 24 (GraphicsLayer … … 23 27 (contentsOpaque 1) 24 28 (visible rect 100.00, 0.00 100.00 x 200.00) 29 (contentsScale 1.00) 25 30 ) 26 31 ) -
trunk/LayoutTests/platform/mac/compositing/visible-rect/clipped-by-viewport-expected.txt
r155995 r155998 2 2 (bounds 800.00 600.00) 3 3 (visible rect 0.00, 0.00 800.00 x 600.00) 4 (contentsScale 1.00) 4 5 (children 1 5 6 (GraphicsLayer … … 7 8 (contentsOpaque 1) 8 9 (visible rect 0.00, 0.00 800.00 x 600.00) 10 (contentsScale 1.00) 9 11 (children 2 10 12 (GraphicsLayer … … 14 16 (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]) 15 17 (visible rect 100.00, 120.00 100.00 x 80.00) 18 (contentsScale 1.00) 16 19 ) 17 20 (GraphicsLayer … … 21 24 (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]) 22 25 (visible rect 100.00, 0.00 100.00 x 200.00) 26 (contentsScale 1.00) 23 27 ) 24 28 ) -
trunk/LayoutTests/platform/mac/compositing/visible-rect/clipped-visible-rect-expected.txt
r155995 r155998 2 2 (bounds 800.00 600.00) 3 3 (visible rect 0.00, 0.00 800.00 x 600.00) 4 (contentsScale 1.00) 4 5 (children 1 5 6 (GraphicsLayer … … 7 8 (contentsOpaque 1) 8 9 (visible rect 0.00, 0.00 800.00 x 600.00) 10 (contentsScale 1.00) 9 11 (children 1 10 12 (GraphicsLayer … … 12 14 (bounds 502.00 202.00) 13 15 (visible rect 0.00, 0.00 502.00 x 202.00) 16 (contentsScale 1.00) 14 17 (children 1 15 18 (GraphicsLayer … … 17 20 (bounds 500.00 200.00) 18 21 (visible rect 0.00, 0.00 500.00 x 200.00) 22 (contentsScale 1.00) 19 23 (children 3 20 24 (GraphicsLayer … … 24 28 (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]) 25 29 (visible rect 100.00, 0.00 100.00 x 200.00) 30 (contentsScale 1.00) 26 31 ) 27 32 (GraphicsLayer … … 31 36 (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]) 32 37 (visible rect 0.00, 0.00 200.00 x 200.00) 38 (contentsScale 1.00) 33 39 ) 34 40 (GraphicsLayer … … 38 44 (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]) 39 45 (visible rect 0.00, 0.00 100.00 x 200.00) 46 (contentsScale 1.00) 40 47 ) 41 48 ) -
trunk/LayoutTests/platform/mac/compositing/visible-rect/flipped-preserve-3d-expected.txt
r155995 r155998 8 8 (bounds 785.00 615.00) 9 9 (visible rect 0.00, 0.00 785.00 x 600.00) 10 (contentsScale 1.00) 10 11 (children 1 11 12 (GraphicsLayer … … 13 14 (contentsOpaque 1) 14 15 (visible rect 0.00, 0.00 785.00 x 600.00) 16 (contentsScale 1.00) 15 17 (children 1 16 18 (GraphicsLayer … … 19 21 (childrenTransform [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 0.00 1.00]) 20 22 (visible rect 0.00, 0.00 602.00 x 587.00) 23 (contentsScale 1.00) 21 24 (children 1 22 25 (GraphicsLayer … … 27 30 (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 0.00 1.00]) 28 31 (visible rect 0.00, 0.00 440.00 x 440.00) 32 (contentsScale 1.00) 29 33 (children 1 30 34 (GraphicsLayer … … 33 37 (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 0.00 1.00]) 34 38 (visible rect 0.00, 0.00 420.00 x 420.00) 39 (contentsScale 1.00) 35 40 (children 1 36 41 (GraphicsLayer 37 42 (bounds 420.00 420.00) 38 43 (visible rect 0.00, 0.00 420.00 x 420.00) 44 (contentsScale 1.00) 39 45 (children 1 40 46 (GraphicsLayer … … 43 49 (contentsOpaque 1) 44 50 (visible rect 0.00, 90.00 418.00 x 420.00) 51 (contentsScale 1.00) 45 52 (children 1 46 53 (GraphicsLayer 47 54 (bounds 418.00 510.00) 48 55 (visible rect 0.00, 90.00 418.00 x 420.00) 56 (contentsScale 1.00) 49 57 (children 3 50 58 (GraphicsLayer … … 55 63 (drawsContent 1) 56 64 (visible rect 3000.00, 90.00 418.00 x 30.00) 65 (contentsScale 1.00) 57 66 ) 58 67 (GraphicsLayer … … 63 72 (drawsContent 1) 64 73 (visible rect 3000.00, 0.00 418.00 x 120.00) 74 (contentsScale 1.00) 65 75 ) 66 76 (GraphicsLayer … … 71 81 (drawsContent 1) 72 82 (visible rect 3000.00, 0.00 418.00 x 120.00) 83 (contentsScale 1.00) 73 84 ) 74 85 ) -
trunk/LayoutTests/platform/mac/compositing/visible-rect/iframe-and-layers-expected.txt
r155995 r155998 3 3 (bounds 1508.00 1516.00) 4 4 (visible rect 0.00, 0.00 785.00 x 585.00) 5 (contentsScale 1.00) 5 6 (children 1 6 7 (GraphicsLayer … … 8 9 (contentsOpaque 1) 9 10 (visible rect 0.00, 0.00 785.00 x 585.00) 11 (contentsScale 1.00) 10 12 (children 2 11 13 (GraphicsLayer … … 14 16 (drawsContent 1) 15 17 (visible rect 0.00, 0.00 360.00 x 210.00) 18 (contentsScale 1.00) 16 19 (children 1 17 20 (GraphicsLayer 18 21 (position 30.00 30.00) 19 22 (visible rect 0.00, 0.00 0.00 x 0.00) 23 (contentsScale 1.00) 20 24 (children 1 21 25 (GraphicsLayer 22 26 (bounds 285.00 135.00) 23 27 (visible rect 0.00, 0.00 285.00 x 135.00) 28 (contentsScale 1.00) 24 29 (children 1 25 30 (GraphicsLayer 26 31 (visible rect 0.00, 0.00 0.00 x 0.00) 32 (contentsScale 1.00) 27 33 (children 1 28 34 (GraphicsLayer 29 35 (bounds 1508.00 1516.00) 30 36 (visible rect 0.00, 0.00 285.00 x 135.00) 37 (contentsScale 1.00) 31 38 (children 1 32 39 (GraphicsLayer … … 34 41 (drawsContent 1) 35 42 (visible rect 0.00, 0.00 285.00 x 135.00) 43 (contentsScale 1.00) 36 44 (children 1 37 45 (GraphicsLayer … … 42 50 (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]) 43 51 (visible rect 0.00, 0.00 100.00 x 127.00) 52 (contentsScale 1.00) 44 53 ) 45 54 ) … … 61 70 (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]) 62 71 (visible rect 0.00, 0.00 200.00 x 200.00) 72 (contentsScale 1.00) 63 73 ) 64 74 ) -
trunk/LayoutTests/platform/mac/compositing/visible-rect/iframe-no-layers-expected.txt
r155994 r155998 3 3 (bounds 1508.00 1516.00) 4 4 (visible rect 0.00, 0.00 285.00 x 135.00) 5 (contentsScale 1.00) 5 6 (children 1 6 7 (GraphicsLayer 7 8 (bounds 1508.00 1516.00) 9 (drawsContent 1) 8 10 (visible rect 0.00, 0.00 285.00 x 135.00) 11 (contentsScale 1.00) 9 12 (children 1 10 13 (GraphicsLayer … … 15 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]) 16 19 (visible rect 0.00, 0.00 100.00 x 127.00) 20 (contentsScale 1.00) 17 21 ) 18 22 ) -
trunk/LayoutTests/platform/mac/compositing/visible-rect/nested-transform-expected.txt
r155995 r155998 2 2 (bounds 785.00 669.00) 3 3 (visible rect 0.00, 0.00 785.00 x 600.00) 4 (contentsScale 1.00) 4 5 (children 1 5 6 (GraphicsLayer … … 7 8 (contentsOpaque 1) 8 9 (visible rect 0.00, 0.00 785.00 x 600.00) 10 (contentsScale 1.00) 9 11 (children 2 10 12 (GraphicsLayer … … 12 14 (bounds 304.00 304.00) 13 15 (visible rect 0.00, 0.00 304.00 x 304.00) 16 (contentsScale 1.00) 14 17 (children 1 15 18 (GraphicsLayer … … 18 21 (childrenTransform [1.00 0.00 0.00 0.00] [0.00 1.00 0.00 0.00] [0.26 0.26 1.00 -0.00] [0.00 0.00 0.00 1.00]) 19 22 (visible rect 0.00, 0.00 300.00 x 300.00) 23 (contentsScale 1.00) 20 24 (children 1 21 25 (GraphicsLayer … … 24 28 (transform [0.94 0.00 -0.34 0.00] [0.00 1.00 0.00 0.00] [0.34 0.00 0.94 0.00] [0.00 0.00 0.00 1.00]) 25 29 (visible rect 0.00, 0.00 0.00 x 0.00) 30 (contentsScale 1.21) 26 31 (children 1 27 32 (GraphicsLayer … … 30 35 (transform [0.94 0.00 -0.34 0.00] [0.00 1.00 0.00 0.00] [0.34 0.00 0.94 0.00] [0.00 0.00 0.00 1.00]) 31 36 (visible rect 0.00, 0.00 0.00 x 0.00) 37 (contentsScale 1.44) 32 38 (children 1 33 39 (GraphicsLayer … … 36 42 (transform [1.00 0.00 0.00 0.00] [0.00 0.82 0.57 0.00] [0.00 -0.57 0.82 0.00] [0.00 0.00 0.00 1.00]) 37 43 (visible rect 0.00, 0.00 500.00 x 369.91) 44 (contentsScale 1.05) 38 45 ) 39 46 ) … … 49 56 (bounds 304.00 304.00) 50 57 (visible rect 0.00, 0.00 304.00 x 276.00) 58 (contentsScale 1.00) 51 59 (children 1 52 60 (GraphicsLayer … … 55 63 (childrenTransform [1.00 0.00 0.00 0.00] [0.00 1.00 0.00 0.00] [0.26 0.26 1.00 -0.00] [0.00 0.00 0.00 1.00]) 56 64 (visible rect 0.00, 0.00 300.00 x 274.00) 65 (contentsScale 1.00) 57 66 (children 1 58 67 (GraphicsLayer … … 60 69 (preserves3D 1) 61 70 (visible rect 0.00, 0.00 0.00 x 0.00) 71 (contentsScale 1.00) 62 72 (children 1 63 73 (GraphicsLayer … … 66 76 (transform [0.77 0.00 -0.64 0.00] [0.00 1.00 0.00 0.00] [0.64 0.00 0.77 0.00] [0.00 0.00 0.00 1.00]) 67 77 (visible rect 0.00, 0.00 0.00 x 0.00) 78 (contentsScale 1.64) 68 79 (children 1 69 80 (GraphicsLayer … … 72 83 (transform [1.00 0.00 0.00 0.00] [0.00 0.82 0.57 0.00] [0.00 -0.57 0.82 0.00] [0.00 0.00 0.00 1.00]) 73 84 (visible rect 0.00, 0.00 500.00 x 351.87) 85 (contentsScale 1.20) 74 86 ) 75 87 ) -
trunk/LayoutTests/platform/mac/compositing/visible-rect/scrolled-expected.txt
r155995 r155998 2 2 (bounds 1508.00 2008.00) 3 3 (visible rect 25.00, 200.00 785.00 x 585.00) 4 (contentsScale 1.00) 4 5 (children 1 5 6 (GraphicsLayer … … 7 8 (contentsOpaque 1) 8 9 (visible rect 25.00, 200.00 785.00 x 585.00) 10 (contentsScale 1.00) 9 11 (children 1 10 12 (GraphicsLayer … … 14 16 (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]) 15 17 (visible rect 17.00, 200.00 183.00 x 300.00) 18 (contentsScale 1.00) 16 19 ) 17 20 ) -
trunk/Source/WebCore/ChangeLog
r155994 r155998 1 2013-09-17 Simon Fraser <simon.fraser@apple.com> 2 3 Hardware accelerated CSS transitions appear pixelated when scaled up using transform 4 https://bugs.webkit.org/show_bug.cgi?id=27684 5 <rdar://problem/6134606> 6 7 Reviewed by Dean Jackson. 8 9 Take transforms and animations into account when computing the contentsScale 10 for a layer, so that scaled-up layers remain sharp most of the time. 11 12 In its recursiveCommitChanges() tree walk, GraphicsLayerCA now tracks 13 a root-relative transform, and extracts from that transform the X and Y 14 scales which it uses to scale the backing store. 15 16 If the layer has transform animations on it, we keep around 17 a transformation matrix for the animation endpoints (or keyframes), 18 pick up the state that has the larger impact on the root-relative scale, 19 and use that as the layer's transform, and the transform when recursing 20 over descendants. 21 22 Tests: compositing/contents-scale/animating.html 23 compositing/contents-scale/scaled-ancestor.html 24 compositing/contents-scale/simple-scale.html 25 compositing/contents-scale/z-translate.html 26 27 * platform/graphics/ca/GraphicsLayerCA.cpp: 28 (WebCore::maxScaleFromTransform): Decompose the transform if necesssary 29 to extract the X and Y scale components. 30 (WebCore::GraphicsLayerCA::GraphicsLayerCA): Initialize m_rootRelativeScaleFactor. 31 (WebCore::GraphicsLayerCA::flushCompositingState): Supply a TransformationMatrix 32 for the root of the recursion. 33 (WebCore::GraphicsLayerCA::layerTransform): This code was factored out of 34 computeVisibleRect(), and optionally takes a custom transform. 35 (WebCore::GraphicsLayerCA::computeVisibleRect): Use the layerTransform() function. 36 (WebCore::GraphicsLayerCA::updateRootRelativeScale): Given a transform from the root, 37 find the max scale factor by multiplying the various animation endpoint matrices and picking 38 the one with the biggest impact on scale. Use this to set m_rootRelativeScaleFactor, and 39 set the flag to say that we need to update contentsScale. 40 (WebCore::GraphicsLayerCA::recursiveCommitChanges): 41 (WebCore::GraphicsLayerCA::commitLayerChangesBeforeSublayers): After updating 42 animations, call updateRootRelativeScale() to update m_rootRelativeScaleFactor. 43 (WebCore::GraphicsLayerCA::updateAnimations): We have a side table of animation name to 44 TransformationMatrix, so figure out which entries can be removed from that side table, 45 and remove them. 46 (WebCore::GraphicsLayerCA::setAnimationOnLayer): 47 (WebCore::GraphicsLayerCA::appendToUncommittedAnimations): Store the matrices for 48 animation endpoints/keyframes in the m_animationTransforms side table. We don't store 49 them directly in LayerPropertyAnimation because we just want the final matrix for 50 a transform list, and using a side table makes ownership easier to manage. 51 (WebCore::GraphicsLayerCA::getTransformFromAnimationsWithMaxScaleImpact): 52 goes through the matrices for the running animation endpoints/keyframes, and 53 multiplies each with the transform up to this layer to find the matrix with the 54 larger impact on scale. 55 (WebCore::GraphicsLayerCA::setTransformAnimationEndpoints): Returns a vector 56 of TransformationMatrix for the from and to states. 57 (WebCore::GraphicsLayerCA::setTransformAnimationKeyframes): Returns a vector 58 of TransformationMatrix for the keyframes. 59 (WebCore::GraphicsLayerCA::updateContentsScale): Include m_rootRelativeScaleFactor in the 60 scale factor computation. 61 (WebCore::GraphicsLayerCA::dumpAdditionalProperties): If we're dumping visible rects, 62 also dump the contentsScale. Convenient at these are useful to look at together, and I didn't 63 want to pollute Internals with yet more flags. 64 * platform/graphics/ca/GraphicsLayerCA.h: 65 (WebCore::GraphicsLayerCA::LayerPropertyAnimation::LayerPropertyAnimation): Formatting. 66 1 67 2013-09-17 Commit Queue <commit-queue@webkit.org> 2 68 -
trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp
r155994 r155998 251 251 } 252 252 253 static float maxScaleFromTransform(const TransformationMatrix& t) 254 { 255 if (t.isIdentityOrTranslation()) 256 return 1; 257 258 TransformationMatrix::DecomposedType decomposeData; 259 t.decompose(decomposeData); 260 return std::max(fabsf(decomposeData.scaleX), fabsf(decomposeData.scaleY)); 261 } 262 253 263 #if ENABLE(CSS_FILTERS) || !ASSERT_DISABLED 254 264 static inline bool supportsAcceleratedFilterAnimations() … … 276 286 , m_allowTiledLayer(true) 277 287 , m_isPageTiledBackingLayer(false) 288 , m_rootRelativeScaleFactor(1) 278 289 , m_uncommittedChanges(0) 279 290 { … … 907 918 { 908 919 TransformState state(TransformState::UnapplyInverseTransformDirection, FloatQuad(clipRect)); 909 recursiveCommitChanges(CommitState(), state); 920 TransformationMatrix rootRelativeTransform; 921 recursiveCommitChanges(CommitState(), state, rootRelativeTransform); 910 922 } 911 923 … … 975 987 } 976 988 977 FloatRect GraphicsLayerCA::computeVisibleRect(TransformState& state, ComputeVisibleRectFlags flags) const 978 { 979 bool preserve3D = preserves3D() || (parent() ? parent()->preserves3D() : false); 980 TransformState::TransformAccumulation accumulation = preserve3D ? TransformState::AccumulateTransform : TransformState::FlattenTransform; 981 982 TransformationMatrix layerTransform; 983 FloatPoint position = m_position; 984 if (client()) 985 client()->customPositionForVisibleRectComputation(this, position); 986 987 layerTransform.translate(position.x(), position.y()); 988 989 TransformationMatrix currentTransform; 990 if (!(flags & RespectAnimatingTransforms) || !client() || !client()->getCurrentTransform(this, currentTransform)) 991 currentTransform = m_transform; 989 TransformationMatrix GraphicsLayerCA::layerTransform(const FloatPoint& position, const TransformationMatrix* customTransform) const 990 { 991 TransformationMatrix transform; 992 transform.translate(position.x(), position.y()); 993 994 TransformationMatrix currentTransform = customTransform ? *customTransform : m_transform; 992 995 993 996 if (!currentTransform.isIdentity()) { 994 997 FloatPoint3D absoluteAnchorPoint(anchorPoint()); 995 998 absoluteAnchorPoint.scale(size().width(), size().height(), 1); 996 layerTransform.translate3d(absoluteAnchorPoint.x(), absoluteAnchorPoint.y(), absoluteAnchorPoint.z());997 layerTransform.multiply(currentTransform);998 layerTransform.translate3d(-absoluteAnchorPoint.x(), -absoluteAnchorPoint.y(), -absoluteAnchorPoint.z());999 transform.translate3d(absoluteAnchorPoint.x(), absoluteAnchorPoint.y(), absoluteAnchorPoint.z()); 1000 transform.multiply(currentTransform); 1001 transform.translate3d(-absoluteAnchorPoint.x(), -absoluteAnchorPoint.y(), -absoluteAnchorPoint.z()); 999 1002 } 1000 1003 … … 1004 1007 parentAnchorPoint.scale(parentLayer->size().width(), parentLayer->size().height(), 1); 1005 1008 1006 layerTransform.translateRight3d(-parentAnchorPoint.x(), -parentAnchorPoint.y(), -parentAnchorPoint.z()); 1007 layerTransform = parentLayer->childrenTransform() * layerTransform; 1008 layerTransform.translateRight3d(parentAnchorPoint.x(), parentAnchorPoint.y(), parentAnchorPoint.z()); 1009 } 1010 } 1009 transform.translateRight3d(-parentAnchorPoint.x(), -parentAnchorPoint.y(), -parentAnchorPoint.z()); 1010 transform = parentLayer->childrenTransform() * transform; 1011 transform.translateRight3d(parentAnchorPoint.x(), parentAnchorPoint.y(), parentAnchorPoint.z()); 1012 } 1013 } 1014 1015 return transform; 1016 } 1017 1018 FloatRect GraphicsLayerCA::computeVisibleRect(TransformState& state, ComputeVisibleRectFlags flags) const 1019 { 1020 bool preserve3D = preserves3D() || (parent() ? parent()->preserves3D() : false); 1021 TransformState::TransformAccumulation accumulation = preserve3D ? TransformState::AccumulateTransform : TransformState::FlattenTransform; 1022 1023 FloatPoint position = m_position; 1024 if (client()) 1025 client()->customPositionForVisibleRectComputation(this, position); 1026 1027 TransformationMatrix layerTransform; 1028 TransformationMatrix currentTransform; 1029 if ((flags & RespectAnimatingTransforms) && client() && client()->getCurrentTransform(this, currentTransform)) 1030 layerTransform = this->layerTransform(position, ¤tTransform); 1031 else 1032 layerTransform = this->layerTransform(position); 1011 1033 1012 1034 bool applyWasClamped; 1013 1035 state.applyTransform(layerTransform, accumulation, &applyWasClamped); 1014 1036 1015 1037 bool mapWasClamped; 1016 1038 FloatRect clipRectForChildren = state.mappedQuad(&mapWasClamped).boundingBox(); … … 1031 1053 } 1032 1054 1033 void GraphicsLayerCA::recursiveCommitChanges(const CommitState& commitState, const TransformState& state, float pageScaleFactor, const FloatPoint& positionRelativeToBase, bool affectedByPageScale) 1055 void GraphicsLayerCA::updateRootRelativeScale(TransformationMatrix* transformFromRoot) 1056 { 1057 if (!transformFromRoot) 1058 return; 1059 1060 float rootRelativeScaleFactor; 1061 TransformationMatrix maxScaleImpactTransform; 1062 bool haveTransformAnimation = getTransformFromAnimationsWithMaxScaleImpact(*transformFromRoot, maxScaleImpactTransform, rootRelativeScaleFactor); 1063 if (haveTransformAnimation) 1064 transformFromRoot->multiply(maxScaleImpactTransform); 1065 else { 1066 TransformationMatrix unanimatedTransform = this->layerTransform(m_position); 1067 transformFromRoot->multiply(unanimatedTransform); 1068 rootRelativeScaleFactor = maxScaleFromTransform(*transformFromRoot); 1069 } 1070 1071 if (rootRelativeScaleFactor != m_rootRelativeScaleFactor) { 1072 m_rootRelativeScaleFactor = rootRelativeScaleFactor; 1073 m_uncommittedChanges |= ContentsScaleChanged; 1074 } 1075 } 1076 1077 // rootRelativeTransformForScaling is a transform from the root, but for layers with transform animations, it cherry-picked the state of the 1078 // animation that contributes maximally to the scale (on every layer with animations down the hierarchy). 1079 void GraphicsLayerCA::recursiveCommitChanges(const CommitState& commitState, const TransformState& state, const TransformationMatrix& rootRelativeTransformForScaling, float pageScaleFactor, const FloatPoint& positionRelativeToBase, bool affectedByPageScale) 1034 1080 { 1035 1081 TransformState localState = state; … … 1077 1123 baseRelativePosition += m_position; 1078 1124 1079 commitLayerChangesBeforeSublayers(childCommitState, pageScaleFactor, baseRelativePosition, oldVisibleRect); 1125 TransformationMatrix transformFromRoot = rootRelativeTransformForScaling; 1126 commitLayerChangesBeforeSublayers(childCommitState, pageScaleFactor, baseRelativePosition, oldVisibleRect, &transformFromRoot); 1080 1127 1081 1128 if (isRunningTransformAnimation()) { … … 1094 1141 for (size_t i = 0; i < numChildren; ++i) { 1095 1142 GraphicsLayerCA* curChild = static_cast<GraphicsLayerCA*>(childLayers[i]); 1096 curChild->recursiveCommitChanges(childCommitState, localState, pageScaleFactor, baseRelativePosition, affectedByPageScale);1143 curChild->recursiveCommitChanges(childCommitState, localState, transformFromRoot, pageScaleFactor, baseRelativePosition, affectedByPageScale); 1097 1144 } 1098 1145 1099 1146 if (m_replicaLayer) 1100 static_cast<GraphicsLayerCA*>(m_replicaLayer)->recursiveCommitChanges(childCommitState, localState, pageScaleFactor, baseRelativePosition, affectedByPageScale);1147 static_cast<GraphicsLayerCA*>(m_replicaLayer)->recursiveCommitChanges(childCommitState, localState, transformFromRoot, pageScaleFactor, baseRelativePosition, affectedByPageScale); 1101 1148 1102 1149 if (m_maskLayer) … … 1142 1189 } 1143 1190 1144 void GraphicsLayerCA::commitLayerChangesBeforeSublayers(CommitState& commitState, float pageScaleFactor, const FloatPoint& positionRelativeToBase, const FloatRect& oldVisibleRect )1191 void GraphicsLayerCA::commitLayerChangesBeforeSublayers(CommitState& commitState, float pageScaleFactor, const FloatPoint& positionRelativeToBase, const FloatRect& oldVisibleRect, TransformationMatrix* transformFromRoot) 1145 1192 { 1146 1193 ++commitState.treeDepth; … … 1215 1262 if (m_uncommittedChanges & AnimationChanged) 1216 1263 updateAnimations(); 1264 1265 // After committing animations, see if we need to adjust contentsScale accordingly. 1266 updateRootRelativeScale(transformFromRoot); 1217 1267 1218 1268 // Updating the contents scale can cause parts of the layer to be invalidated, … … 1926 1976 void GraphicsLayerCA::updateAnimations() 1927 1977 { 1978 HashSet<String> finishedAnimations; 1979 1928 1980 if (m_animationsToProcess.size()) { 1929 1981 AnimationsToProcessMap::const_iterator end = m_animationsToProcess.end(); … … 1948 2000 } 1949 2001 1950 if (processingInfo.action == Remove) 2002 if (processingInfo.action == Remove) { 1951 2003 m_runningAnimations.remove(currAnimationName); 2004 finishedAnimations.add(currAnimationName); 2005 } 1952 2006 } 1953 2007 … … 1966 2020 animations.append(pendingAnimation); 1967 2021 m_runningAnimations.add(pendingAnimation.m_name, animations); 2022 1968 2023 } else { 1969 2024 Vector<LayerPropertyAnimation>& animations = it->value; 1970 2025 animations.append(pendingAnimation); 1971 2026 } 1972 } 1973 2027 2028 finishedAnimations.remove(pendingAnimation.m_name); 2029 } 1974 2030 m_uncomittedAnimations.clear(); 1975 2031 } 2032 2033 HashSet<String>::const_iterator end = finishedAnimations.end(); 2034 for (HashSet<String>::const_iterator it = finishedAnimations.begin(); it != end; ++it) 2035 m_animationTransforms.remove(*it); 1976 2036 } 1977 2037 … … 1994 2054 { 1995 2055 PlatformCALayer* layer = animatedLayer(property); 1996 2056 1997 2057 if (timeOffset) 1998 2058 caAnim->setBeginTime(CACurrentMediaTime() - timeOffset); … … 2137 2197 2138 2198 RefPtr<PlatformCAAnimation> caAnimation; 2199 Vector<TransformationMatrix> matrices; 2139 2200 bool validMatrices = true; 2140 2201 if (isKeyframe) { 2141 2202 caAnimation = createKeyframeAnimation(animation, propertyIdToString(valueList.property()), additive); 2142 validMatrices = setTransformAnimationKeyframes(valueList, animation, caAnimation.get(), animationIndex, transformOp, isMatrixAnimation, boxSize );2203 validMatrices = setTransformAnimationKeyframes(valueList, animation, caAnimation.get(), animationIndex, transformOp, isMatrixAnimation, boxSize, matrices); 2143 2204 } else { 2144 2205 caAnimation = createBasicAnimation(animation, propertyIdToString(valueList.property()), additive); 2145 validMatrices = setTransformAnimationEndpoints(valueList, animation, caAnimation.get(), animationIndex, transformOp, isMatrixAnimation, boxSize );2206 validMatrices = setTransformAnimationEndpoints(valueList, animation, caAnimation.get(), animationIndex, transformOp, isMatrixAnimation, boxSize, matrices); 2146 2207 } 2147 2208 … … 2149 2210 return false; 2150 2211 2212 m_animationTransforms.set(animationName, matrices); 2213 2151 2214 m_uncomittedAnimations.append(LayerPropertyAnimation(caAnimation, animationName, valueList.property(), animationIndex, 0, timeOffset)); 2152 2215 return true; 2216 } 2217 2218 bool GraphicsLayerCA::getTransformFromAnimationsWithMaxScaleImpact(const TransformationMatrix& parentTransformFromRoot, TransformationMatrix& maxScaleTransform, float& maxScale) const 2219 { 2220 maxScale = 1; 2221 2222 bool haveTransformAnimation = false; 2223 AnimationsMap::const_iterator end = m_runningAnimations.end(); 2224 for (AnimationsMap::const_iterator it = m_runningAnimations.begin(); it != end; ++it) { 2225 const Vector<LayerPropertyAnimation>& propertyAnimations = it->value; 2226 size_t numAnimations = propertyAnimations.size(); 2227 for (size_t i = 0; i < numAnimations; ++i) { 2228 const LayerPropertyAnimation& animation = propertyAnimations[i]; 2229 if (animation.m_property != AnimatedPropertyWebkitTransform) 2230 continue; 2231 2232 haveTransformAnimation = true; 2233 2234 TransformsMap::const_iterator it = m_animationTransforms.find(animation.m_name); 2235 if (it != m_animationTransforms.end()) { 2236 const Vector<TransformationMatrix>& matrices = it->value; 2237 2238 for (size_t i = 0; i < matrices.size(); ++i) { 2239 TransformationMatrix roootRelativeTransformWithAnimation = parentTransformFromRoot; 2240 TransformationMatrix layerTransformWithAnimation = layerTransform(m_position, &matrices[i]); 2241 2242 roootRelativeTransformWithAnimation.multiply(layerTransformWithAnimation); 2243 2244 float rootRelativeScale = maxScaleFromTransform(roootRelativeTransformWithAnimation); 2245 if (rootRelativeScale > maxScale) { 2246 maxScale = rootRelativeScale; 2247 maxScaleTransform = matrices[i]; 2248 } 2249 } 2250 } 2251 } 2252 } 2253 2254 return haveTransformAnimation; 2153 2255 } 2154 2256 … … 2393 2495 } 2394 2496 2395 bool GraphicsLayerCA::setTransformAnimationEndpoints(const KeyframeValueList& valueList, const Animation* animation, PlatformCAAnimation* basicAnim, int functionIndex, TransformOperation::OperationType transformOpType, bool isMatrixAnimation, const IntSize& boxSize )2497 bool GraphicsLayerCA::setTransformAnimationEndpoints(const KeyframeValueList& valueList, const Animation* animation, PlatformCAAnimation* basicAnim, int functionIndex, TransformOperation::OperationType transformOpType, bool isMatrixAnimation, const IntSize& boxSize, Vector<TransformationMatrix>& matrixes) 2396 2498 { 2397 2499 ASSERT(valueList.size() == 2); … … 2404 2506 const TransformAnimationValue& startValue = static_cast<const TransformAnimationValue&>(valueList.at(fromIndex)); 2405 2507 const TransformAnimationValue& endValue = static_cast<const TransformAnimationValue&>(valueList.at(toIndex)); 2508 2509 TransformationMatrix fromTransform, toTransform; 2406 2510 2407 2511 if (isMatrixAnimation) { 2408 TransformationMatrix fromTransform, toTransform;2409 2512 startValue.value().apply(boxSize, fromTransform); 2410 2513 endValue.value().apply(boxSize, toTransform); … … 2413 2516 if (!fromTransform.isInvertible() || !toTransform.isInvertible()) 2414 2517 return false; 2415 2416 basicAnim->setFromValue(fromTransform);2417 basicAnim->setToValue(toTransform);2418 2518 } else { 2419 2519 if (isTransformTypeNumber(transformOpType)) { … … 2442 2542 basicAnim->setToValue(toValue); 2443 2543 } 2444 } 2544 2545 startValue.value().apply(boxSize, fromTransform); 2546 endValue.value().apply(boxSize, toTransform); 2547 } 2548 matrixes.append(fromTransform); 2549 matrixes.append(toTransform); 2445 2550 2446 2551 // This codepath is used for 2-keyframe animations, so we still need to look in the start … … 2456 2561 } 2457 2562 2458 bool GraphicsLayerCA::setTransformAnimationKeyframes(const KeyframeValueList& valueList, const Animation* animation, PlatformCAAnimation* keyframeAnim, int functionIndex, TransformOperation::OperationType transformOpType, bool isMatrixAnimation, const IntSize& boxSize )2563 bool GraphicsLayerCA::setTransformAnimationKeyframes(const KeyframeValueList& valueList, const Animation* animation, PlatformCAAnimation* keyframeAnim, int functionIndex, TransformOperation::OperationType transformOpType, bool isMatrixAnimation, const IntSize& boxSize, Vector<TransformationMatrix>& matrixes) 2459 2564 { 2460 2565 Vector<float> keyTimes; … … 2471 2576 keyTimes.append(forwards ? curValue.keyTime() : (1 - curValue.keyTime())); 2472 2577 2578 TransformationMatrix transform; 2579 2473 2580 if (isMatrixAnimation) { 2474 TransformationMatrix transform;2475 2581 curValue.value().apply(boxSize, transform); 2476 2582 … … 2495 2601 transformationMatrixValues.append(value); 2496 2602 } 2497 } 2603 2604 curValue.value().apply(boxSize, transform); 2605 } 2606 2607 matrixes.append(transform); 2498 2608 2499 2609 if (i < (valueList.size() - 1)) … … 2656 2766 void GraphicsLayerCA::updateContentsScale(float pageScaleFactor) 2657 2767 { 2658 float contentsScale = clampedContentsScaleForScale(pageScaleFactor * deviceScaleFactor()); 2659 2768 float contentsScale = clampedContentsScaleForScale(m_rootRelativeScaleFactor * pageScaleFactor * deviceScaleFactor()); 2660 2769 m_layer->setContentsScale(contentsScale); 2661 2770 if (drawsContent()) … … 2705 2814 writeIndent(textStream, indent + 1); 2706 2815 textStream << "(visible rect " << m_visibleRect.x() << ", " << m_visibleRect.y() << " " << m_visibleRect.width() << " x " << m_visibleRect.height() << ")\n"; 2816 2817 writeIndent(textStream, indent + 1); 2818 textStream << "(contentsScale " << m_layer->contentsScale() << ")\n"; 2707 2819 } 2708 2820 -
trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.h
r155994 r155998 141 141 { } 142 142 }; 143 void recursiveCommitChanges(const CommitState&, const TransformState&, float pageScaleFactor = 1, const FloatPoint& positionRelativeToBase = FloatPoint(), bool affectedByPageScale = false);143 void recursiveCommitChanges(const CommitState&, const TransformState&, const TransformationMatrix& rootRelativeTransformForScaling, float pageScaleFactor = 1, const FloatPoint& positionRelativeToBase = FloatPoint(), bool affectedByPageScale = false); 144 144 145 145 virtual void flushCompositingState(const FloatRect&); … … 214 214 bool setAnimationKeyframes(const KeyframeValueList&, const Animation*, PlatformCAAnimation*); 215 215 216 bool setTransformAnimationEndpoints(const KeyframeValueList&, const Animation*, PlatformCAAnimation*, int functionIndex, TransformOperation::OperationType, bool isMatrixAnimation, const IntSize& boxSize );217 bool setTransformAnimationKeyframes(const KeyframeValueList&, const Animation*, PlatformCAAnimation*, int functionIndex, TransformOperation::OperationType, bool isMatrixAnimation, const IntSize& boxSize );216 bool setTransformAnimationEndpoints(const KeyframeValueList&, const Animation*, PlatformCAAnimation*, int functionIndex, TransformOperation::OperationType, bool isMatrixAnimation, const IntSize& boxSize, Vector<TransformationMatrix>& matrixes); 217 bool setTransformAnimationKeyframes(const KeyframeValueList&, const Animation*, PlatformCAAnimation*, int functionIndex, TransformOperation::OperationType, bool isMatrixAnimation, const IntSize& boxSize, Vector<TransformationMatrix>& matrixes); 218 218 219 219 #if ENABLE(CSS_FILTERS) … … 229 229 } 230 230 231 void commitLayerChangesBeforeSublayers(CommitState&, float pageScaleFactor, const FloatPoint& positionRelativeToBase, const FloatRect& oldVisibleRect );231 void commitLayerChangesBeforeSublayers(CommitState&, float pageScaleFactor, const FloatPoint& positionRelativeToBase, const FloatRect& oldVisibleRect, TransformationMatrix* transformFromRoot = 0); 232 232 void commitLayerChangesAfterSublayers(CommitState&); 233 233 … … 249 249 void computePixelAlignment(float pixelAlignmentScale, const FloatPoint& positionRelativeToBase, 250 250 FloatPoint& position, FloatSize&, FloatPoint3D& anchorPoint, FloatSize& alignmentOffset) const; 251 252 TransformationMatrix layerTransform(const FloatPoint& position, const TransformationMatrix* customTransform = 0) const; 253 void updateRootRelativeScale(TransformationMatrix* transformFromRoot); 254 251 255 enum ComputeVisibleRectFlag { RespectAnimatingTransforms = 1 << 0 }; 252 256 typedef unsigned ComputeVisibleRectFlags; … … 374 378 bool appendToUncommittedAnimations(const KeyframeValueList&, const FilterOperation*, const Animation*, const String& animationName, int animationIndex, double timeOffset); 375 379 #endif 380 381 // Returns true if any transform animations are running. 382 bool getTransformFromAnimationsWithMaxScaleImpact(const TransformationMatrix& parentTransformFromRoot, TransformationMatrix&, float& maxScale) const; 376 383 377 384 enum LayerChange { … … 443 450 bool m_isPageTiledBackingLayer : 1; 444 451 452 float m_rootRelativeScaleFactor; 453 445 454 Color m_contentsSolidColor; 446 455 … … 452 461 struct LayerPropertyAnimation { 453 462 LayerPropertyAnimation(PassRefPtr<PlatformCAAnimation> caAnimation, const String& animationName, AnimatedPropertyID property, int index, int subIndex, double timeOffset) 454 : m_animation(caAnimation)455 , m_name(animationName)456 , m_property(property)457 , m_index(index)458 , m_subIndex(subIndex)459 , m_timeOffset(timeOffset)463 : m_animation(caAnimation) 464 , m_name(animationName) 465 , m_property(property) 466 , m_index(index) 467 , m_subIndex(subIndex) 468 , m_timeOffset(timeOffset) 460 469 { } 461 470 … … 488 497 AnimationsMap m_runningAnimations; 489 498 499 // Map from animation key to TransformationMatrices for animations of transform. The vector contains a matrix for 500 // the two endpoints, or each keyframe. Used for contentsScale adjustment. 501 typedef HashMap<String, Vector<TransformationMatrix> > TransformsMap; 502 TransformsMap m_animationTransforms; 503 490 504 Vector<FloatRect> m_dirtyRects; 491 505 FloatSize m_pixelAlignmentOffset;
Note:
See TracChangeset
for help on using the changeset viewer.