| OLD | NEW |
| 1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
| 2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k"> | 2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k"> |
| 3 <style type="text/css"> | 3 <style type="text/css"> |
| 4 @font-face { | 4 @font-face { |
| 5 font-family: "Ahem"; | 5 font-family: "Ahem"; |
| 6 src: url(../../resources/Ahem.ttf); | 6 src: url(../../resources/Ahem.ttf); |
| 7 } | 7 } |
| 8 </style> | 8 </style> |
| 9 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/> | 9 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/> |
| 10 <text x="20" y="60" font-family="Ahem" font-size="50px" style="text-shadow:
200px 200px 5px red">X</text> | 10 <text x="20" y="60" font-family="Ahem" font-size="50px" style="text-shadow:
200px 200px 5px red">X</text> |
| 11 <text x="170" y="60" font-family="Ahem" font-size="50px" style="text-shadow:
200px 200px 5px red">X</text> | 11 <text x="170" y="60" font-family="Ahem" font-size="50px" style="text-shadow:
200px 200px 5px red">X</text> |
| 12 | 12 |
| 13 <script> | 13 <script> |
| 14 function repaintTest() { | 14 function repaintTest() { |
| 15 document.getElementsByTagName('text')[1].setAttribute("x", 171); | 15 document.getElementsByTagName('text')[1].setAttribute("x", 171); |
| 16 if (window.testRunner) | 16 if (window.testRunner) |
| 17 testRunner.notifyDone(); | 17 testRunner.notifyDone(); |
| 18 } | 18 } |
| 19 if (window.testRunner) | 19 if (window.testRunner) |
| 20 testRunner.waitUntilDone(); | 20 testRunner.waitUntilDone(); |
| 21 document.fonts.ready().then(runRepaintAndPixelTest); | 21 document.fonts.ready.then(runRepaintAndPixelTest); |
| 22 </script> | 22 </script> |
| 23 </svg> | 23 </svg> |
| OLD | NEW |