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