| OLD | NEW |
| 1 <!doctype HTML> | 1 <!doctype HTML> |
| 2 <style>targetImage::first-line { color: yellow; }</style> | 2 <style>targetImage::first-line { color: yellow; }</style> |
| 3 <div style="height: 2000px; width: 2000px;"> | 3 <div style="height: 2000px; width: 2000px;"> |
| 4 <div id="targetImage" style="width: 50px; height: 50px">text text</div> | 4 <div id="targetImage" style="width: 50px; height: 50px">text text</div> |
| 5 <img id="testTarget" style="visibility: hidden"> | 5 <img id="testTarget" style="visibility: hidden"> |
| 6 </div> | 6 </div> |
| 7 | 7 |
| 8 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | 8 <script src="resources/text-based-repaint.js"></script> |
| 9 <script> | 9 <script> |
| 10 window.testIsAsync = true; | 10 window.testIsAsync = true; |
| 11 | 11 |
| 12 // Disable under-invalidation checking because the "under-invalidation" of | 12 // Disable under-invalidation checking because the "under-invalidation" of |
| 13 // offscreen gif animation is intentional. | 13 // offscreen gif animation is intentional. |
| 14 if (window.internals) | 14 if (window.internals) |
| 15 internals.runtimeFlags.paintUnderInvalidationCheckingEnabled = false; | 15 internals.runtimeFlags.paintUnderInvalidationCheckingEnabled = false; |
| 16 | 16 |
| 17 function repaintTest() { | 17 function repaintTest() { |
| 18 if (window.internals) | 18 if (window.internals) |
| (...skipping 11 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 onload = function() { | 31 onload = function() { |
| 32 targetImage.style.background = "url(../../fast/backgrounds/resources/red-gre
en-animated.gif)"; | 32 targetImage.style.background = "url(../../fast/backgrounds/resources/red-gre
en-animated.gif)"; |
| 33 | 33 |
| 34 // Use a parallel image element as a hack to detect whether the image has lo
aded, and therefore | 34 // Use a parallel image element as a hack to detect whether the image has lo
aded, and therefore |
| 35 // we'll get a frame. | 35 // we'll get a frame. |
| 36 testTarget.onload = targetImageOnload; | 36 testTarget.onload = targetImageOnload; |
| 37 testTarget.src = "../../fast/backgrounds/resources/red-green-animated.gif"; | 37 testTarget.src = "../../fast/backgrounds/resources/red-green-animated.gif"; |
| 38 } | 38 } |
| 39 </script> | 39 </script> |
| OLD | NEW |