| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | 4 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
| 5 <script type="text/javascript"> | 5 <script type="text/javascript"> |
| 6 if (window.internals) | 6 if (window.internals) |
| 7 internals.settings.setPreferCompositingToLCDTextEnabled(true); | 7 internals.settings.setPreferCompositingToLCDTextEnabled(true); |
| 8 | 8 |
| 9 function repaintTest() | 9 function repaintTest() |
| 10 { | 10 { |
| 11 window.scrollTo(0, 1000); | 11 window.scrollTo(0, 1000); |
| 12 window.scrollTo(0, 100); | 12 window.scrollTo(0, 100); |
| 13 } | 13 } |
| 14 </script> | 14 </script> |
| 15 </head> | 15 </head> |
| 16 <body style="height:2000px" onload="runRepaintTest()"> | 16 <body style="height:2000px" onload="runRepaintAndPixelTest()"> |
| 17 <div style="position: fixed; top: -300px; left: 100px; width: 88px; height:
88px; background-color: silver"></div> | 17 <div style="position: fixed; top: -300px; left: 100px; width: 88px; height:
88px; background-color: silver"></div> |
| 18 <div style="position: fixed; top: 1000px; left: 100px; width: 99px; height:
99px; background-color: silver"></div> | 18 <div style="position: fixed; top: 1000px; left: 100px; width: 99px; height:
99px; background-color: silver"></div> |
| 19 There should be no repaints here: | 19 There should be no repaints here: |
| 20 </body> | 20 </body> |
| 21 </html> | 21 </html> |
| OLD | NEW |