| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/run-after-display.js"></script> | 4 <script src="../../resources/run-after-display.js"></script> |
| 5 <style> | 5 <style> |
| 6 .composited { | 6 .composited { |
| 7 -webkit-transform: translatez(0); | 7 -webkit-transform: translatez(0); |
| 8 } | 8 } |
| 9 | 9 |
| 10 .background { | 10 .background { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 } | 47 } |
| 48 </style> | 48 </style> |
| 49 | 49 |
| 50 <script> | 50 <script> |
| 51 if (window.testRunner) { | 51 if (window.testRunner) { |
| 52 testRunner.waitUntilDone(); | 52 testRunner.waitUntilDone(); |
| 53 testRunner.dumpAsText(); | 53 testRunner.dumpAsText(); |
| 54 } | 54 } |
| 55 | 55 |
| 56 if (window.internals) { | 56 if (window.internals) { |
| 57 internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true
); | 57 internals.settings.setPreferCompositingToLCDTextEnabled(true); |
| 58 internals.settings.setLayerSquashingEnabled(true); | 58 internals.settings.setLayerSquashingEnabled(true); |
| 59 } | 59 } |
| 60 | 60 |
| 61 function runTest() | 61 function runTest() |
| 62 { | 62 { |
| 63 if (!window.internals) | 63 if (!window.internals) |
| 64 return; | 64 return; |
| 65 | 65 |
| 66 (function() { | 66 (function() { |
| 67 | 67 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 CASE 3, scrolling y to 120, no repaints expected: | 178 CASE 3, scrolling y to 120, no repaints expected: |
| 179 <pre id="Case3"></pre> | 179 <pre id="Case3"></pre> |
| 180 | 180 |
| 181 CASE 4, scrolling y to 170 new layers will be squashed, so things repaint: | 181 CASE 4, scrolling y to 170 new layers will be squashed, so things repaint: |
| 182 <pre id="Case4"></pre> | 182 <pre id="Case4"></pre> |
| 183 </div> | 183 </div> |
| 184 | 184 |
| 185 </body> | 185 </body> |
| 186 | 186 |
| 187 </html> | 187 </html> |
| OLD | NEW |