| 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 colgroup border width, expect that cache is invalidated and paint
produces expected image. | 3 Here we change colgroup border width, expect that cache is invalidated and paint
produces 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("colgroup").style.borderWidth = "4px"; | 12 document.getElementById("colgroup").style.borderWidth = "4px"; |
| 13 } | 13 } |
| 14 </script> | 14 </script> |
| 15 </head> | 15 </head> |
| 16 <body onload="runRepaintTest()"> | 16 <body onload="runRepaintAndPixelTest()"> |
| 17 <table style="border-collapse:collapse; border:1px solid blue"> | 17 <table style="border-collapse:collapse; border:1px solid blue"> |
| 18 <colgroup style="border:1px solid yellow" id="colgroup"> | 18 <colgroup style="border:1px solid yellow" id="colgroup"> |
| 19 <col> | 19 <col> |
| 20 <col> | 20 <col> |
| 21 </colgroup> | 21 </colgroup> |
| 22 <colgroup> | 22 <colgroup> |
| 23 <col> | 23 <col> |
| 24 </colgroup> | 24 </colgroup> |
| 25 <tbody> | 25 <tbody> |
| 26 <tr> | 26 <tr> |
| 27 <td style="border:2px solid lime"/> | 27 <td style="border:2px solid lime"/> |
| 28 <td/> | 28 <td/> |
| 29 <td/> | 29 <td/> |
| 30 </tr> | 30 </tr> |
| 31 <tr> | 31 <tr> |
| 32 <td/> | 32 <td/> |
| 33 <td/> | 33 <td/> |
| 34 <td/> | 34 <td/> |
| 35 </tr> | 35 </tr> |
| 36 </tbody> | 36 </tbody> |
| 37 </table> | 37 </table> |
| 38 </body> | 38 </body> |
| 39 </html> | 39 </html> |
| 40 | 40 |
| OLD | NEW |