| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |