| OLD | NEW |
| 1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
| 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics
/SVG/1.1/DTD/svg11-basic.dtd"> | 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics
/SVG/1.1/DTD/svg11-basic.dtd"> |
| 3 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" onload="runRe
paintAndPixelTest()"> | 3 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" onload="runRe
paintTest()"> |
| 4 <script xlink:href="../../resources/run-after-layout-and-paint.js"/> | 4 <script xlink:href="../../resources/run-after-layout-and-paint.js"/> |
| 5 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/> | 5 <script xlink:href="../../fast/repaint/resources/repaint.js"/> |
| 6 <g id="content"/> | 6 <g id="content"/> |
| 7 | 7 |
| 8 <script> | 8 <script> |
| 9 window.testIsAsync = true; | 9 window.testIsAsync = true; |
| 10 | 10 |
| 11 function repaintTest() { | 11 function repaintTest() { |
| 12 runAfterLayoutAndPaint(createGradients); | 12 runAfterLayoutAndPaint(createGradients); |
| 13 } | 13 } |
| 14 | 14 |
| 15 var content = document.getElementById("content"); | 15 var content = document.getElementById("content"); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 text3.setAttribute("stroke", "url(#strokeLinearGradient)"); | 87 text3.setAttribute("stroke", "url(#strokeLinearGradient)"); |
| 88 text3.appendChild(document.createTextNode("Gradient on fill/stroke")); | 88 text3.appendChild(document.createTextNode("Gradient on fill/stroke")); |
| 89 | 89 |
| 90 content.appendChild(text3); | 90 content.appendChild(text3); |
| 91 | 91 |
| 92 finishRepaintTest(); | 92 finishRepaintTest(); |
| 93 } | 93 } |
| 94 </script> | 94 </script> |
| 95 | 95 |
| 96 </svg> | 96 </svg> |
| OLD | NEW |