OLD | NEW |
1 <!-- Based on fast/table/border-collapsing/cached-change-row-border-width.html -
-> | 1 <!-- Based on fast/table/border-collapsing/cached-change-row-border-width.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 row border width, expect that cache is invalidated and paint prod
uces expected image. | 4 Here we change row border width, 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 "LayoutTable TABLE", | |
16 "LayoutTableCell TD", | |
17 "LayoutTableSection TBODY", | |
18 "LayoutTableRow TR id='row'", | |
19 "LayoutTableCell TD", | |
20 "LayoutTableRow TR", | |
21 "LayoutTableCell TD", | |
22 ]; | |
23 function paintInvalidationTest() { | 12 function paintInvalidationTest() { |
24 document.getElementById("row").style.borderWidth = "4px"; | 13 document.getElementById("row").style.borderWidth = "4px"; |
25 } | 14 } |
26 </script> | 15 </script> |
27 </head> | 16 </head> |
28 <body onload="runPaintInvalidationTest()"> | 17 <body onload="runPaintInvalidationTest()"> |
29 <table style="border-collapse:collapse; border:1px solid blue"> | 18 <table style="border-collapse:collapse; border:1px solid blue"> |
30 <tr style="border:1px solid yellow" id="row"> | 19 <tr style="border:1px solid yellow" id="row"> |
31 <td style="border:2px solid lime"/> | 20 <td style="border:2px solid lime"/> |
32 </tr> | 21 </tr> |
33 <tr> | 22 <tr> |
34 <td/> | 23 <td/> |
35 </tr> | 24 </tr> |
36 </table> | 25 </table> |
37 </body> | 26 </body> |
38 </html> | 27 </html> |
39 | 28 |
OLD | NEW |