Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: LayoutTests/compositing/squashing/squash-onto-nephew.html

Issue 785333002: Delete the Layer Squashing runtime feature. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <head> 2 <head>
3 <style> 3 <style>
4 .composited { 4 .composited {
5 transform: translatez(0); 5 transform: translatez(0);
6 } 6 }
7 7
8 .box { 8 .box {
9 width: 100px; 9 width: 100px;
10 height: 100px; 10 height: 100px;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 div:hover { 55 div:hover {
56 background-color: green; 56 background-color: green;
57 } 57 }
58 58
59 </style> 59 </style>
60 <script> 60 <script>
61 if (window.testRunner) 61 if (window.testRunner)
62 testRunner.dumpAsText(); 62 testRunner.dumpAsText();
63 63
64 if (window.internals)
65 internals.settings.setLayerSquashingEnabled(true);
66
67 function runTest() 64 function runTest()
68 { 65 {
69 if (!window.internals) { 66 if (!window.internals) {
70 alert('This test requires window.internals') 67 alert('This test requires window.internals')
71 return; 68 return;
72 } 69 }
73 70
74 document.body.textContent = window.internals.layerTreeAsText(document, i nternals.LAYER_TREE_INCLUDES_REPAINT_RECTS); 71 document.body.textContent = window.internals.layerTreeAsText(document, i nternals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
75 document.body.style.whiteSpace = 'pre'; 72 document.body.style.whiteSpace = 'pre';
76 } 73 }
77 </script> 74 </script>
78 </head> 75 </head>
79 <body onload="runTest()"> 76 <body onload="runTest()">
80 <div class="container"> 77 <div class="container">
81 <div class="composited box behind"></div> 78 <div class="composited box behind"></div>
82 <div class="box middle"></div> 79 <div class="box middle"></div>
83 </div> 80 </div>
84 <div class="box middle2"></div> 81 <div class="box middle2"></div>
85 <div class="box top"></div> 82 <div class="box top"></div>
86 </body> 83 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698