OLD | NEW |
1 <!-- Based on fast/table/border-collapsing/cached-change-col-border-color.html -
-> | 1 <!-- Based on fast/table/border-collapsing/cached-change-col-border-color.html -
-> |
2 <!-- | 2 <!-- |
3 Calculating collapsed borders for big tables is expensive, so we cache them and
recalculate when needed. | 3 Calculating collapsed borders for big tables is expensive, so we cache them and
recalculate when needed. |
4 Here we change col border color, expect that cache is invalidated and paint prod
uces expected image. | 4 Here we change col border color, expect that cache is invalidated and paint prod
uces expected image. |
5 --> | 5 --> |
6 <html> | 6 <html> |
7 <head> | 7 <head> |
8 <title></title> | 8 <title></title> |
9 <link rel="stylesheet" href="../../../fast/table/border-collapsing/resou
rces/cached.css"> | 9 <link rel="stylesheet" href="../../../fast/table/border-collapsing/resou
rces/cached.css"> |
10 <script src="resources/paint-invalidation-test.js"></script> | 10 <script src="resources/paint-invalidation-test.js"></script> |
11 <script type="text/javascript"> | 11 <script type="text/javascript"> |
12 window.expectedPaintInvalidationObjects = [ | |
13 "LayoutTableCell TD", | |
14 "LayoutTableCell TD", | |
15 "LayoutTableCell TD", | |
16 "LayoutTableCell TD", | |
17 "LayoutTableCell TD", | |
18 "LayoutTableCell TD", | |
19 "LayoutTableCol COL id='col'", | |
20 ]; | |
21 function paintInvalidationTest() { | 12 function paintInvalidationTest() { |
22 document.getElementById("col").style.borderColor = "yellow"; | 13 document.getElementById("col").style.borderColor = "yellow"; |
23 } | 14 } |
24 </script> | 15 </script> |
25 </head> | 16 </head> |
26 <body onload="runPaintInvalidationTest()"> | 17 <body onload="runPaintInvalidationTest()"> |
27 <table style="border-collapse:collapse; border:1px solid blue"> | 18 <table style="border-collapse:collapse; border:1px solid blue"> |
28 <colgroup> | 19 <colgroup> |
29 <col style="border:4px solid pink" id="col"> | 20 <col style="border:4px solid pink" id="col"> |
30 <col> | 21 <col> |
31 </colgroup> | 22 </colgroup> |
32 <tbody> | 23 <tbody> |
33 <tr> | 24 <tr> |
34 <td style="border:2px solid lime"/> | 25 <td style="border:2px solid lime"/> |
35 <td/> | 26 <td/> |
36 </tr> | 27 </tr> |
37 <tr> | 28 <tr> |
38 <td/> | 29 <td/> |
39 <td/> | 30 <td/> |
40 </tr> | 31 </tr> |
41 </tbody> | 32 </tbody> |
42 </table> | 33 </table> |
43 </body> | 34 </body> |
44 </html> | 35 </html> |
45 | 36 |
OLD | NEW |