Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <style> | |
| 3 td { width: 100px; height: 100px } | |
| 4 tr { background-image: url(../../../fast/backgrounds/resources/red-green-animate d.gif) } | |
| 5 </style> | |
| 6 <table> | |
| 7 <tr id="row"> | |
| 8 <td id="cell1"></td> | |
| 9 <td id="cell2"></td> | |
| 10 </tr> | |
| 11 </table> | |
| 12 <img id="image"> | |
| 13 <script src="../resources/text-based-repaint.js"></script> | |
| 14 <script> | |
| 15 window.testIsAsync = true; | |
| 16 function repaintTest() { | |
| 17 if (window.internals) | |
| 18 internals.advanceImageAnimation(image); | |
| 19 requestAnimationFrame(function() { | |
| 20 finishRepaintTest(); | |
| 21 }); | |
| 22 } | |
| 23 onload = function() { | |
| 24 console.log("onload"); | |
|
wkorman
2016/11/15 18:45:11
rm
Xianzhu
2016/11/15 18:52:29
Done.
| |
| 25 image.onload = runRepaintTest; | |
| 26 image.src="../../../fast/backgrounds/resources/red-green-animated.gif"; | |
|
wkorman
2016/11/15 18:45:11
Why does the test need both this animated image in
Xianzhu
2016/11/15 18:52:29
The <img> element has two purposes:
1. ensures tha
| |
| 27 } | |
| 28 </script> | |
| OLD | NEW |