| OLD | NEW |
| 1 <!-- Based on compositing/repaint/scroll-fixed-layer-no-content.html --> | 1 <!-- Based on compositing/repaint/scroll-fixed-layer-no-content.html --> |
| 2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <script src="resources/paint-invalidation-test.js"></script> | 5 <script src="resources/paint-invalidation-test.js"></script> |
| 6 <script type="text/javascript"> | 6 <script type="text/javascript"> |
| 7 if (window.testRunner) |
| 8 testRunner.dumpAsText(); |
| 7 if (window.internals) | 9 if (window.internals) |
| 8 internals.settings.setPreferCompositingToLCDTextEnabled(true); | 10 internals.settings.setPreferCompositingToLCDTextEnabled(true); |
| 9 window.expectedPaintInvalidationObjects = [ | |
| 10 ]; | |
| 11 function paintInvalidationTest() | 11 function paintInvalidationTest() |
| 12 { | 12 { |
| 13 window.scrollTo(0, 1000); | 13 window.scrollTo(0, 1000); |
| 14 window.scrollTo(0, 100); | 14 window.scrollTo(0, 100); |
| 15 } | 15 } |
| 16 </script> | 16 </script> |
| 17 </head> | 17 </head> |
| 18 <body style="height:2000px" onload="runPaintInvalidationTest()"> | 18 <body style="height:2000px" onload="runPaintInvalidationTest()"> |
| 19 <div style="position: fixed; top: 100px; left: 100px; width: 200px; height:
200px"></div> | 19 <div style="position: fixed; top: 100px; left: 100px; width: 200px; height:
200px"></div> |
| 20 There should be no repaints here: | 20 There should be no repaints here: |
| 21 </body> | 21 </body> |
| 22 </html> | 22 </html> |
| OLD | NEW |