| OLD | NEW |
| (Empty) |
| 1 <!-- Based on compositing/overflow/scrolling-without-painting.html --> | |
| 2 <!DOCTYPE html> | |
| 3 | |
| 4 <!-- | |
| 5 This test checks that accelerated scrolling layers can be scrolled without | |
| 6 repainting their contents. See https://bugs.webkit.org/show_bug.cgi?id=96087. | |
| 7 --> | |
| 8 | |
| 9 <html> | |
| 10 <head> | |
| 11 <style type="text/css"> | |
| 12 #scroller { | |
| 13 overflow: scroll; | |
| 14 -webkit-overflow-scrolling: touch; | |
| 15 width: 200px; | |
| 16 height: 200px; | |
| 17 border: solid thin blue; | |
| 18 } | |
| 19 | |
| 20 #content { | |
| 21 height: 1000px; | |
| 22 margin-top: 25px; | |
| 23 } | |
| 24 </style> | |
| 25 <script src="resources/paint-invalidation-test.js"></script> | |
| 26 <script type="text/javascript"> | |
| 27 if (window.internals) | |
| 28 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); | |
| 29 | |
| 30 function paintInvalidationTest() { | |
| 31 // Scroll down. This should not cause any more repaints to the | |
| 32 // scrolling contents. | |
| 33 document.getElementById('scroller').scrollTop = 25; | |
| 34 } | |
| 35 | |
| 36 runPaintInvalidationTest(); | |
| 37 </script> | |
| 38 </head> | |
| 39 <body> | |
| 40 <div id="scroller"> | |
| 41 <div id="content"></div> | |
| 42 </div> | |
| 43 </body> | |
| 44 </html> | |
| OLD | NEW |