OLD | NEW |
1 <!-- Based on fast/repaint/add-table-overpaint.html --> | 1 <!-- Based on fast/repaint/add-table-overpaint.html --> |
2 | 2 |
3 <!DOCTYPE html> | 3 <!DOCTYPE html> |
4 <html> | 4 <html> |
5 <body onload="runPaintInvalidationTest()" style="margin: 0px"> | 5 <body onload="runPaintInvalidationTest()" style="margin: 0px"> |
6 <script src="resources/paint-invalidation-test.js"></script> | 6 <script src="resources/paint-invalidation-test.js"></script> |
7 <style> | 7 <style> |
8 td { | 8 td { |
9 height: 150px; | 9 height: 150px; |
10 width: 150px; | 10 width: 150px; |
11 background-color: blue; | 11 background-color: blue; |
12 } | 12 } |
13 </style> | 13 </style> |
14 <!-- This test adds 3 tables do the document. Adding the 3rd table should not c
ause the first table to repaint. --> | 14 <!-- This test adds 3 tables do the document. Adding the 3rd table should not c
ause the first table to repaint. --> |
15 <div id="container"></div> | 15 <div id="container"></div> |
16 <script> | 16 <script> |
17 function addTable() { | 17 function addTable() { |
18 var div = document.createElement('div'); | 18 var div = document.createElement('div'); |
19 document.getElementById('container').appendChild(div); | 19 document.getElementById('container').appendChild(div); |
20 div.innerHTML = '<table><td></td></table>'; | 20 div.innerHTML = '<table><td></td></table>'; |
21 } | 21 } |
22 addTable(); | 22 addTable(); |
23 addTable(); | 23 addTable(); |
24 window.expectedPaintInvalidationObjects = [ | |
25 "LayoutBlockFlow DIV", | |
26 "LayoutTable TABLE", | |
27 "LayoutTableCell TD", | |
28 "LayoutTableSection TBODY", | |
29 "LayoutTableRow TR", | |
30 "LayoutTableCell TD", | |
31 ]; | |
32 function paintInvalidationTest() { | 24 function paintInvalidationTest() { |
33 addTable(); | 25 addTable(); |
34 } | 26 } |
35 </script> | 27 </script> |
36 </body> | 28 </body> |
37 </html> | 29 </html> |
OLD | NEW |