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