Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | |
| 3 <style> | |
| 4 div { | |
| 5 display: block; | |
| 6 width: 450px; | |
| 7 height: 100px; | |
| 8 color: red; | |
| 9 } | |
| 10 div:hover { | |
| 11 color: green; | |
| 12 text-decoration: underline; | |
| 13 } | |
| 14 </style> | |
| 15 | |
| 16 <!-- Ensure the optimization in https://src.chromium.org/viewvc/blink?view=rev&r evision=152046 doesn't break. --> | |
| 17 <div id="div"> | |
| 18 This test <img src="resources/bluesquare.png" width="10px" height="10px"> passes if <span>only</span> text is invalidated and <img src="resources/bluesquare.png " width="10px" height="10px"> no <img src="resources/bluesquare.png" width="10px " height="10px"> images. | |
| 19 </div> | |
| 20 | |
| 21 <script> | |
| 22 onload = runRepaintTest; | |
| 23 function repaintTest() { | |
| 24 if (window.eventSender); | |
| 25 eventSender.mouseMoveTo(div.offsetLeft + 5, div.offsetTop + 5); | |
| 26 finishRepaintTest(); | |
| 27 } | |
| 28 </script> | |
| OLD | NEW |