OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 | 4 |
5 .compositedAndRotated { | 5 .compositedAndRotated { |
6 -webkit-transform: translatez(0) rotate(45deg); | 6 -webkit-transform: translatez(0) rotate(45deg); |
7 } | 7 } |
8 | 8 |
9 .box { | 9 .box { |
10 width: 100px; | 10 width: 100px; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 if (window.internals) | 47 if (window.internals) |
48 internals.settings.setLayerSquashingEnabled(true); | 48 internals.settings.setLayerSquashingEnabled(true); |
49 | 49 |
50 function runTest() | 50 function runTest() |
51 { | 51 { |
52 if (!window.internals) { | 52 if (!window.internals) { |
53 alert('This test requires window.internals') | 53 alert('This test requires window.internals') |
54 return; | 54 return; |
55 } | 55 } |
56 | 56 |
57 testRunner.display(); | |
58 document.body.textContent = window.internals.layerTreeAsText(document, i
nternals.LAYER_TREE_INCLUDES_REPAINT_RECTS); | 57 document.body.textContent = window.internals.layerTreeAsText(document, i
nternals.LAYER_TREE_INCLUDES_REPAINT_RECTS); |
59 document.body.style.whiteSpace = 'pre'; | 58 document.body.style.whiteSpace = 'pre'; |
60 } | 59 } |
61 </script> | 60 </script> |
62 </head> | 61 </head> |
63 <body onload="runTest()"> | 62 <body onload="runTest()"> |
64 <div class="compositedAndRotated box behind"></div> | 63 <div class="compositedAndRotated box behind"></div> |
65 <div class="box middle"></div> | 64 <div class="box middle"></div> |
66 <div class="box top"></div> | 65 <div class="box top"></div> |
67 </body> | 66 </body> |
OLD | NEW |