| 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" transform="scale(1, 1.5)"/> | 6 <g id="content" transform="scale(1, 1.5)"/> |
| 7 <script> | 7 <script> |
| 8 window.testIsAsync = true; | 8 window.testIsAsync = true; |
| 9 function repaintTest() { | 9 function repaintTest() { |
| 10 runAfterLayoutAndPaint(createObject); | 10 runAfterLayoutAndPaint(createObject); |
| 11 } | 11 } |
| 12 | 12 |
| 13 var content = document.getElementById("content"); | 13 var content = document.getElementById("content"); |
| 14 | 14 |
| 15 function createObject() | 15 function createObject() |
| (...skipping 21 matching lines...) Expand all Loading... |
| 37 path.setAttribute("d", "M 0 0 l 200 0 l 0 200 l -200 0 Z"); | 37 path.setAttribute("d", "M 0 0 l 200 0 l 0 200 l -200 0 Z"); |
| 38 | 38 |
| 39 clipPath.appendChild(path); | 39 clipPath.appendChild(path); |
| 40 content.appendChild(clipPath); | 40 content.appendChild(clipPath); |
| 41 | 41 |
| 42 finishRepaintTest(); | 42 finishRepaintTest(); |
| 43 } | 43 } |
| 44 </script> | 44 </script> |
| 45 | 45 |
| 46 </svg> | 46 </svg> |
| OLD | NEW |