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

Side by Side Diff: LayoutTests/compositing/absolute-inside-out-of-view-fixed.html

Issue 476273003: Rename acceleratedCompositingForFixedPosition to preferCompositingToLCDText. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm-fixedpos: rebase Created 6 years, 4 months 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
« no previous file with comments | « no previous file | LayoutTests/compositing/fixed-position-changed-to-absolute.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
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 body { 7 body {
8 margin: 0; 8 margin: 0;
9 height: 2500px; 9 height: 2500px;
10 } 10 }
(...skipping 14 matching lines...) Expand all
25 background-color: green; 25 background-color: green;
26 } 26 }
27 27
28 </style> 28 </style>
29 <script> 29 <script>
30 if (window.testRunner) { 30 if (window.testRunner) {
31 testRunner.waitUntilDone(); 31 testRunner.waitUntilDone();
32 testRunner.dumpAsText(); 32 testRunner.dumpAsText();
33 } 33 }
34 if (window.internals) { 34 if (window.internals) {
35 window.internals.settings.setAcceleratedCompositingForFixedPositionEna bled(true); 35 window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
36 } 36 }
37 37
38 function doScroll() 38 function doScroll()
39 { 39 {
40 window.setTimeout(function() { 40 window.setTimeout(function() {
41 window.scrollTo(0, 200); 41 window.scrollTo(0, 200);
42 42
43 runAfterDisplay(function() { 43 runAfterDisplay(function() {
44 if (window.internals) { 44 if (window.internals) {
45 document.getElementById('results').innerText = internals.layerTree AsText(document); 45 document.getElementById('results').innerText = internals.layerTree AsText(document);
46 if (window.testRunner) { 46 if (window.testRunner) {
47 testRunner.notifyDone(); 47 testRunner.notifyDone();
48 } 48 }
49 } 49 }
50 }); 50 });
51 }, 10); 51 }, 10);
52 } 52 }
53 53
54 window.addEventListener('load', doScroll, false); 54 window.addEventListener('load', doScroll, false);
55 </script> 55 </script>
56 </head> 56 </head>
57 <body> 57 <body>
58 <pre id="results"></pre> 58 <pre id="results"></pre>
59 <div class="fixed"> 59 <div class="fixed">
60 <div class="wrapper box"> 60 <div class="wrapper box">
61 </div> 61 </div>
62 </div> 62 </div>
63 </body> 63 </body>
64 </html> 64 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/compositing/fixed-position-changed-to-absolute.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698