| OLD | NEW |
| 1 <!-- Based on fast/repaint/intermediate-layout-position.html --> |
| 1 <html> | 2 <html> |
| 2 <head> | 3 <head> |
| 3 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=10522</title> | 4 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=10522</title> |
| 4 <style type="text/css"> | 5 <style type="text/css"> |
| 5 .float { float: right; height: 40px; width: 40px; } | 6 .float { float: right; height: 40px; width: 40px; } |
| 6 .test { height: 100px; background-color: aliceblue } | 7 .test { height: 100px; background-color: aliceblue } |
| 7 </style> | 8 </style> |
| 8 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> | 9 <script src="resources/paint-invalidation-test.js" type="text/javascript"></
script> |
| 9 <script type="text/javascript"> | 10 <script type="text/javascript"> |
| 10 function repaintTest() | 11 window.expectedPaintInvalidationObjects = [ |
| 12 "LayoutBlockFlow DIV", |
| 13 "LayoutBlockFlow DIV id='target'", |
| 14 "LayoutTable TABLE", |
| 15 "LayoutTableCell TD id='cell'", |
| 16 ]; |
| 17 function paintInvalidationTest() |
| 11 { | 18 { |
| 12 document.getElementById('target').style.height='20px'; | 19 document.getElementById('target').style.height='20px'; |
| 13 document.getElementById('cell').style.height='20px'; | 20 document.getElementById('cell').style.height='20px'; |
| 14 } | 21 } |
| 15 </script> | 22 </script> |
| 16 </head> | 23 </head> |
| 17 <body onload="runRepaintTest()"> | 24 <body onload="runPaintInvalidationTest()"> |
| 18 <div class="test"> | 25 <div class="test"> |
| 19 <div class="float"></div> | 26 <div class="float"></div> |
| 20 <div style="clear: right; background-color: purple; width: 40px; padding
: 3px;"> | 27 <div style="clear: right; background-color: purple; width: 40px; padding
: 3px;"> |
| 21 <div style="height: 40px; width: 0;" id="target"> | 28 <div style="height: 40px; width: 0;" id="target"> |
| 22 </div> | 29 </div> |
| 23 </div> | 30 </div> |
| 24 </div> | 31 </div> |
| 25 | 32 |
| 26 <div class="test"> | 33 <div class="test"> |
| 27 <div class="float"></div> | 34 <div class="float"></div> |
| 28 <table style="clear: both; background-color: purple;"> | 35 <table style="clear: both; background-color: purple;"> |
| 29 <tr> | 36 <tr> |
| 30 <td id="cell" style="height: 40px; width: 40px;"> | 37 <td id="cell" style="height: 40px; width: 40px;"> |
| 31 </td> | 38 </td> |
| 32 </tr> | 39 </tr> |
| 33 </table> | 40 </table> |
| 34 </div> | 41 </div> |
| 35 </body> | 42 </body> |
| 36 </html> | 43 </html> |
| OLD | NEW |