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