| OLD | NEW |
| 1 <!-- Based on fast/repaint/add-table-overpaint.html --> |
| 1 | 2 |
| 2 <!DOCTYPE html> | 3 <!DOCTYPE html> |
| 3 <html> | 4 <html> |
| 4 <body onload="runRepaintTest()" style="margin: 0px"> | 5 <body onload="runPaintInvalidationTest()" style="margin: 0px"> |
| 5 <script src="resources/text-based-repaint.js"></script> | 6 <script src="resources/paint-invalidation-test.js"></script> |
| 6 <style> | 7 <style> |
| 7 td { | 8 td { |
| 8 height: 150px; | 9 height: 150px; |
| 9 width: 150px; | 10 width: 150px; |
| 10 background-color: blue; | 11 background-color: blue; |
| 11 } | 12 } |
| 12 </style> | 13 </style> |
| 13 <!-- 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. --> |
| 14 <div id="container"></div> | 15 <div id="container"></div> |
| 15 <script> | 16 <script> |
| 16 function addTable() { | 17 function addTable() { |
| 17 var div = document.createElement('div'); | 18 var div = document.createElement('div'); |
| 18 document.getElementById('container').appendChild(div); | 19 document.getElementById('container').appendChild(div); |
| 19 div.innerHTML = '<table><td></td></table>'; | 20 div.innerHTML = '<table><td></td></table>'; |
| 20 } | 21 } |
| 21 addTable(); | 22 addTable(); |
| 22 addTable(); | 23 addTable(); |
| 23 if (window.testRunner) | 24 window.expectedPaintInvalidationObjects = [ |
| 24 testRunner.dumpAsTextWithPixelResults(); // We don't care about the renderin
g tree dump, just the pixel dump. | 25 "LayoutBlockFlow DIV", |
| 25 function repaintTest() { | 26 "LayoutTable TABLE", |
| 27 "LayoutTableCell TD", |
| 28 "LayoutTableSection TBODY", |
| 29 "LayoutTableRow TR", |
| 30 "LayoutTableCell TD", |
| 31 ]; |
| 32 function paintInvalidationTest() { |
| 26 addTable(); | 33 addTable(); |
| 27 } | 34 } |
| 28 </script> | 35 </script> |
| 29 </body> | 36 </body> |
| 30 </html> | 37 </html> |
| OLD | NEW |