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

Side by Side Diff: LayoutTests/compositing/squashing/squash-simple.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 25 matching lines...) Expand all
36 36
37 div:hover { 37 div:hover {
38 background-color: green; 38 background-color: green;
39 } 39 }
40 40
41 </style> 41 </style>
42 <script> 42 <script>
43 if (window.testRunner) 43 if (window.testRunner)
44 testRunner.dumpAsText(); 44 testRunner.dumpAsText();
45 45
46 if (window.internals)
47 internals.settings.setLayerSquashingEnabled(true);
48
49 function runTest() 46 function runTest()
50 { 47 {
51 if (!window.internals) { 48 if (!window.internals) {
52 alert('This test requires window.internals') 49 alert('This test requires window.internals')
53 return; 50 return;
54 } 51 }
55 52
56 document.body.textContent = window.internals.layerTreeAsText(document, i nternals.LAYER_TREE_INCLUDES_REPAINT_RECTS); 53 document.body.textContent = window.internals.layerTreeAsText(document, i nternals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
57 document.body.style.whiteSpace = 'pre'; 54 document.body.style.whiteSpace = 'pre';
58 } 55 }
59 </script> 56 </script>
60 </head> 57 </head>
61 <body onload="runTest()"> 58 <body onload="runTest()">
62 <div class="composited box behind"></div> 59 <div class="composited box behind"></div>
63 <div class="box middle"></div> 60 <div class="box middle"></div>
64 <div class="box top"></div> 61 <div class="box top"></div>
65 </body> 62 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698