| 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 change cell border width, expect that cache is invalidated and paint pro
duces expected image. | 3 Here we change cell border width, expect that cache is invalidated and paint pro
duces expected 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 document.getElementById("foo").style.borderWidth = "4px"; | 12 document.getElementById("foo").style.borderWidth = "4px"; |
| 13 document.getElementById("foo").style.borderColor = "lime"; | |
| 14 } | 13 } |
| 15 </script> | 14 </script> |
| 16 </head> | 15 </head> |
| 17 <body onload="runRepaintTest()"> | 16 <body onload="runRepaintAndPixelTest()"> |
| 18 <table style="border-collapse:collapse; border:2px solid blue"> | 17 <table style="border-collapse:collapse; border:2px solid blue"> |
| 19 <tr> | 18 <tr> |
| 20 <td style="border:1px solid lime" id="foo"/> | 19 <td style="border:1px solid lime" id="foo"/> |
| 21 <td style="border:1px solid black"/> | 20 <td style="border:1px solid black"/> |
| 22 </tr> | 21 </tr> |
| 23 </table> | 22 </table> |
| 24 </body> | 23 </body> |
| 25 </html> | 24 </html> |
| 26 | 25 |
| OLD | NEW |