| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <!-- | 3 <!-- |
| 4 This test checks that the contents of accelerated scrolling layers are properly | 4 This test checks that the contents of accelerated scrolling layers are properly |
| 5 updated also outside the current overflow clip. See | 5 updated also outside the current overflow clip. See |
| 6 https://bugs.webkit.org/show_bug.cgi?id=100524. | 6 https://bugs.webkit.org/show_bug.cgi?id=100524. |
| 7 --> | 7 --> |
| 8 | 8 |
| 9 <html> | 9 <html> |
| 10 <head> | 10 <head> |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 height: 200px; | 21 height: 200px; |
| 22 } | 22 } |
| 23 | 23 |
| 24 #content { | 24 #content { |
| 25 height: 1000px; | 25 height: 1000px; |
| 26 } | 26 } |
| 27 </style> | 27 </style> |
| 28 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | 28 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> |
| 29 <script type="text/javascript"> | 29 <script type="text/javascript"> |
| 30 if (window.internals) | 30 if (window.internals) |
| 31 window.internals.settings.setAcceleratedCompositingForOverflowScrollEn
abled(true); | 31 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); |
| 32 | 32 |
| 33 window.addEventListener('load', function() { | 33 window.addEventListener('load', function() { |
| 34 var scroller = document.getElementById('scroller'); | 34 var scroller = document.getElementById('scroller'); |
| 35 var indicator = document.getElementById('indicator'); | 35 var indicator = document.getElementById('indicator'); |
| 36 | 36 |
| 37 // Make sure the scrolling content is painted before we start. | 37 // Make sure the scrolling content is painted before we start. |
| 38 scroller.offsetTop; | 38 scroller.offsetTop; |
| 39 | 39 |
| 40 // Scroll all the way to the bottom and change the color of the | 40 // Scroll all the way to the bottom and change the color of the |
| 41 // indicator (which is now outside the overflow clip). | 41 // indicator (which is now outside the overflow clip). |
| (...skipping 13 matching lines...) Expand all Loading... |
| 55 } | 55 } |
| 56 </script> | 56 </script> |
| 57 </head> | 57 </head> |
| 58 <body> | 58 <body> |
| 59 <div id="scroller"> | 59 <div id="scroller"> |
| 60 <div id="indicator"></div> | 60 <div id="indicator"></div> |
| 61 <div id="content"></div> | 61 <div id="content"></div> |
| 62 </div> | 62 </div> |
| 63 </body> | 63 </body> |
| 64 </html> | 64 </html> |
| OLD | NEW |