| OLD | NEW |
| 1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" | 1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" |
| 2 style="width:300px;height:400px" onload="runRepaintTest()"> | 2 style="width:300px;height:400px" onload="runRepaintAndPixelTest()"> |
| 3 | 3 |
| 4 <script xlink:href="../../fast/repaint/resources/repaint.js"/> | 4 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/> |
| 5 <!-- This tests filters failing to refresh after the initial rendering | 5 <!-- This tests filters failing to refresh after the initial rendering |
| 6 (https://bugs.webkit.org/show_bug.cgi?id=53088). | 6 (https://bugs.webkit.org/show_bug.cgi?id=53088). |
| 7 There should be two green squares in the output. --> | 7 There should be two green squares in the output. --> |
| 8 | 8 |
| 9 <defs> | 9 <defs> |
| 10 <filter id="simple" x="0" y="0"> | 10 <filter id="simple" x="0" y="0"> |
| 11 <feOffset in="SourceGraphic" dx="0" dy="0" /> | 11 <feOffset in="SourceGraphic" dx="0" dy="0" /> |
| 12 </filter> | 12 </filter> |
| 13 | 13 |
| 14 <rect id="rect" width="30" y="10" height="30" fill="red" /> | 14 <rect id="rect" width="30" y="10" height="30" fill="red" /> |
| 15 | 15 |
| 16 </defs> | 16 </defs> |
| 17 | 17 |
| 18 <g> | 18 <g> |
| 19 | 19 |
| 20 <use xlink:href="#rect" x="10" /> | 20 <use xlink:href="#rect" x="10" /> |
| 21 | 21 |
| 22 <use filter="url(#simple)" xlink:href="#rect" x="50" /> | 22 <use filter="url(#simple)" xlink:href="#rect" x="50" /> |
| 23 | 23 |
| 24 </g> | 24 </g> |
| 25 | 25 |
| 26 <script><![CDATA[ | 26 <script><![CDATA[ |
| 27 function repaintTest() { | 27 function repaintTest() { |
| 28 document.getElementById("rect").setAttribute("fill", "green"); | 28 document.getElementById("rect").setAttribute("fill", "green"); |
| 29 } | 29 } |
| 30 ]]></script> | 30 ]]></script> |
| 31 | 31 |
| 32 </svg> | 32 </svg> |
| OLD | NEW |