| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <script src="../resources/text-based-repaint.js"></script> | 2 <script src="../resources/text-based-repaint.js"></script> |
| 3 <script> | 3 <script> |
| 4 if (window.internals) | 4 if (window.internals) |
| 5 internals.settings.setPreferCompositingToLCDTextEnabled(true); | 5 internals.settings.setPreferCompositingToLCDTextEnabled(true); |
| 6 function repaintTest() { | 6 function repaintTest() { |
| 7 document.getElementById('content').style.backgroundColor = 'green'; | 7 document.getElementById('content').style.backgroundColor = 'green'; |
| 8 window.scrollTo(2000, 2000); | 8 window.scrollTo(900, 700); |
| 9 } | 9 } |
| 10 window.onload = runRepaintAndPixelTest; | 10 window.onload = runRepaintAndPixelTest; |
| 11 </script> | 11 </script> |
| 12 <style> | 12 <style> |
| 13 #content { | 13 #content { |
| 14 width: 5000px; | 14 width: 2000px; |
| 15 height: 5000px; | 15 height: 1500px; |
| 16 background-color: red; | 16 background-color: red; |
| 17 } | 17 } |
| 18 </style> | 18 </style> |
| 19 <div id="content"> | 19 <div id="content"> |
| 20 Tests invalidation of scrolling layer. Passes if the repaint rect is not clipped
, | 20 Tests invalidation of scrolling layer. Passes if the repaint rect is not clipped
, |
| 21 and there is no red when the scrolling container is scrolled.<br> | 21 and there is no red when the scrolling container is scrolled.<br> |
| 22 Note for manual testing: must run with --enable-prefer-compositing-to-lcd-text | 22 Note for manual testing: must run with --enable-prefer-compositing-to-lcd-text |
| 23 on non-high-dpi machines to enable composited scrolling. | 23 on non-high-dpi machines to enable composited scrolling. |
| 24 </div> | 24 </div> |
| OLD | NEW |