| OLD | NEW |
| 1 <!-- Based on compositing/overflow/updating-scrolling-content.html --> | 1 <!-- Based on compositing/overflow/updating-scrolling-content.html --> |
| 2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
| 3 | 3 |
| 4 <!-- | 4 <!-- |
| 5 This test checks that the contents of accelerated scrolling layers are properly | 5 This test checks that the contents of accelerated scrolling layers are properly |
| 6 updated also outside the current overflow clip. See | 6 updated also outside the current overflow clip. See |
| 7 https://bugs.webkit.org/show_bug.cgi?id=100524. | 7 https://bugs.webkit.org/show_bug.cgi?id=100524. |
| 8 --> | 8 --> |
| 9 | 9 |
| 10 <html> | 10 <html> |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 // Make sure the scrolling content is painted before we start. | 38 // Make sure the scrolling content is painted before we start. |
| 39 scroller.offsetTop; | 39 scroller.offsetTop; |
| 40 | 40 |
| 41 // Scroll all the way to the bottom and change the color of the | 41 // Scroll all the way to the bottom and change the color of the |
| 42 // indicator (which is now outside the overflow clip). | 42 // indicator (which is now outside the overflow clip). |
| 43 scroller.scrollTop = 1000; | 43 scroller.scrollTop = 1000; |
| 44 | 44 |
| 45 runPaintInvalidationTest(); | 45 runPaintInvalidationTest(); |
| 46 }); | 46 }); |
| 47 | 47 |
| 48 window.expectedPaintInvalidationObjects = [ | |
| 49 "LayoutBlockFlow DIV id='indicator'", | |
| 50 "LayoutBlockFlow DIV id='indicator'", | |
| 51 ]; | |
| 52 function paintInvalidationTest() { | 48 function paintInvalidationTest() { |
| 53 var scroller = document.getElementById('scroller'); | 49 var scroller = document.getElementById('scroller'); |
| 54 var indicator = document.getElementById('indicator'); | 50 var indicator = document.getElementById('indicator'); |
| 55 | 51 |
| 56 indicator.style.background = 'green'; | 52 indicator.style.background = 'green'; |
| 57 | 53 |
| 58 // Scroll back up so that the updated (green) indicator is visible. | 54 // Scroll back up so that the updated (green) indicator is visible. |
| 59 scroller.scrollTop = 0; | 55 scroller.scrollTop = 0; |
| 60 } | 56 } |
| 61 </script> | 57 </script> |
| 62 </head> | 58 </head> |
| 63 <body> | 59 <body> |
| 64 <div id="scroller"> | 60 <div id="scroller"> |
| 65 <div id="indicator"></div> | 61 <div id="indicator"></div> |
| 66 <div id="content"></div> | 62 <div id="content"></div> |
| 67 </div> | 63 </div> |
| 68 </body> | 64 </body> |
| 69 </html> | 65 </html> |
| OLD | NEW |