| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Calculating collapsed borders for big tables is expensive, so we cache them and
recalculate when needed. | 2 Calculating collapsed borders for big tables is expensive, so we cache them and
recalculate when needed. |
| 3 Here we remove cell, expect that cache is invalidated and paint produces expecte
d image. | 3 Here we remove cell, expect that cache is invalidated and paint produces expecte
d image. |
| 4 --> | 4 --> |
| 5 <html> | 5 <html> |
| 6 <head> | 6 <head> |
| 7 <title></title> | 7 <title></title> |
| 8 <link rel="stylesheet" href="resources/cached.css"> | 8 <link rel="stylesheet" href="resources/cached.css"> |
| 9 <script src="../../../fast/repaint/resources/text-based-repaint.js"></sc
ript> | 9 <script src="../../../fast/repaint/resources/text-based-repaint.js"></sc
ript> |
| 10 <script type="text/javascript"> | 10 <script type="text/javascript"> |
| 11 function repaintTest() { | 11 function repaintTest() { |
| 12 barCell = document.getElementById("bar"); | 12 barCell = document.getElementById("bar"); |
| 13 document.getElementById("row").removeChild(barCell); | 13 document.getElementById("row").removeChild(barCell); |
| 14 } | 14 } |
| 15 </script> | 15 </script> |
| 16 </head> | 16 </head> |
| 17 <body onload="runRepaintTest()"> | 17 <body onload="runRepaintAndPixelTest()"> |
| 18 <table style="border-collapse:collapse; border:2px solid blue"> | 18 <table style="border-collapse:collapse; border:2px solid blue"> |
| 19 <tr id="row"> | 19 <tr id="row"> |
| 20 <td style="border:4px solid lime"/> | 20 <td style="border:4px solid lime"/> |
| 21 <td style="border-left:6px solid yellow" id="bar"/> | 21 <td style="border-left:6px solid yellow" id="bar"/> |
| 22 <td/> | 22 <td/> |
| 23 </tr> | 23 </tr> |
| 24 </table> | 24 </table> |
| 25 </body> | 25 </body> |
| 26 </html> | 26 </html> |
| 27 | 27 |
| OLD | NEW |