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

Side by Side Diff: LayoutTests/compositing/squashing/squash-above-fixed-2.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 <html id="htmlTag"> 2 <html id="htmlTag">
3 3
4 <head> 4 <head>
5 <script src="../../resources/run-after-display.js"></script> 5 <script src="../../resources/run-after-display.js"></script>
6 <style> 6 <style>
7 #fixed { 7 #fixed {
8 -webkit-backface-visibility: hidden; 8 -webkit-backface-visibility: hidden;
9 position: fixed; 9 position: fixed;
10 z-index: 1; 10 z-index: 1;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 47
48 </style> 48 </style>
49 49
50 <script> 50 <script>
51 if (window.testRunner) { 51 if (window.testRunner) {
52 testRunner.dumpAsText(); 52 testRunner.dumpAsText();
53 testRunner.waitUntilDone(); 53 testRunner.waitUntilDone();
54 } 54 }
55 55
56 if (window.internals)
57 internals.settings.setLayerSquashingEnabled(true);
58
59 function runTest() 56 function runTest()
60 { 57 {
61 if (!window.internals) 58 if (!window.internals)
62 return; 59 return;
63 60
64 // Display the test results only after test is done so that it does not affect repaint rect results. 61 // Display the test results only after test is done so that it does not affect repaint rect results.
65 document.getElementById('testResults').style.display = "block"; 62 document.getElementById('testResults').style.display = "block";
66 // Case 1 63 // Case 1
67 document.getElementById('Case1').textContent = window.internals.layerTre eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS); 64 document.getElementById('Case1').textContent = window.internals.layerTre eAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
68 65
(...skipping 23 matching lines...) Expand all
92 <div id="testResults"> 89 <div id="testResults">
93 CASE 1, original layer tree: 90 CASE 1, original layer tree:
94 <pre id="Case1"></pre> 91 <pre id="Case1"></pre>
95 92
96 CASE 2, scrolling y to 80, the "container" element should remain positioned with respect to the scrolled document, the fixed-pos layer compensates for the n ew scroll position: 93 CASE 2, scrolling y to 80, the "container" element should remain positioned with respect to the scrolled document, the fixed-pos layer compensates for the n ew scroll position:
97 <pre id="Case2"></pre> 94 <pre id="Case2"></pre>
98 </div> 95 </div>
99 96
100 </body> 97 </body>
101 </html> 98 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698