| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <style> | 5 <style> |
| 6 .container { | 6 .container { |
| 7 width: 200px; | 7 width: 200px; |
| 8 height: 200px; | 8 height: 200px; |
| 9 overflow: scroll; | 9 overflow: scroll; |
| 10 margin: 20px; | 10 margin: 20px; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 background-color: blue; | 44 background-color: blue; |
| 45 } | 45 } |
| 46 | 46 |
| 47 </style> | 47 </style> |
| 48 <script src="resources/automatically-opt-into-composited-scrolling.js"></scrip
t> | 48 <script src="resources/automatically-opt-into-composited-scrolling.js"></scrip
t> |
| 49 <script> | 49 <script> |
| 50 if (window.testRunner) | 50 if (window.testRunner) |
| 51 testRunner.dumpAsText(); | 51 testRunner.dumpAsText(); |
| 52 | 52 |
| 53 if (window.internals) | 53 if (window.internals) |
| 54 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnable
d(true); | 54 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnable
dMode(window.internals.settings.AcceleratedCompositingForOverflowScrollEnabled); |
| 55 | 55 |
| 56 function doTest() | 56 function doTest() |
| 57 { | 57 { |
| 58 var predecessor = document.getElementById('predecessor'); | 58 var predecessor = document.getElementById('predecessor'); |
| 59 var ancestor = document.getElementById('ancestor'); | 59 var ancestor = document.getElementById('ancestor'); |
| 60 var container = document.getElementById('container'); | 60 var container = document.getElementById('container'); |
| 61 var firstChild = document.getElementById('firstChild'); | 61 var firstChild = document.getElementById('firstChild'); |
| 62 var secondChild = document.getElementById('secondChild'); | 62 var secondChild = document.getElementById('secondChild'); |
| 63 | 63 |
| 64 // Force a synchronous style recalc and layout. | 64 // Force a synchronous style recalc and layout. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 80 <div class="positioned" id="predecessor"></div> | 80 <div class="positioned" id="predecessor"></div> |
| 81 <div class="positioned" id="ancestor"> | 81 <div class="positioned" id="ancestor"> |
| 82 <div class="container" id="container"> | 82 <div class="container" id="container"> |
| 83 <div class="scrolled" id="firstChild"></div> | 83 <div class="scrolled" id="firstChild"></div> |
| 84 <div class="scrolled" id="secondChild"></div> | 84 <div class="scrolled" id="secondChild"></div> |
| 85 </div> | 85 </div> |
| 86 </div> | 86 </div> |
| 87 <pre id="console"></pre> | 87 <pre id="console"></pre> |
| 88 </body> | 88 </body> |
| 89 </html> | 89 </html> |
| OLD | NEW |