| OLD | NEW |
| 1 <!-- Based on fast/repaint/overflow-into-content.html --> | 1 <!-- Based on fast/repaint/overflow-into-content.html --> |
| 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> | 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> |
| 3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | 3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| 4 <head> | 4 <head> |
| 5 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=12885</title> | 5 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=12885</title> |
| 6 <style type="text/css"> | 6 <style type="text/css"> |
| 7 div.wide { width: 100px; height: 50px; } | 7 div.wide { width: 100px; height: 50px; } |
| 8 div.narrow { width: 50px; } | 8 div.narrow { width: 50px; } |
| 9 div.tall { width: 50px; height: 100px; } | 9 div.tall { width: 50px; height: 100px; } |
| 10 div.short { height: 50px; width: 50px; } | 10 div.short { height: 50px; width: 50px; } |
| 11 #main-content { float: left; width: 100px; height: 80px; } | 11 #main-content { float: left; width: 100px; height: 80px; } |
| 12 #target3 { display: none; clear: both; height: 20px; background: green;
} | 12 #target3 { display: none; clear: both; height: 20px; background: green;
} |
| 13 </style> | 13 </style> |
| 14 <script src="resources/paint-invalidation-test.js" type="text/javascript"></
script> | 14 <script src="resources/paint-invalidation-test.js" type="text/javascript"></
script> |
| 15 <script> | 15 <script> |
| 16 window.expectedPaintInvalidationObjects = [ | |
| 17 "LayoutBlockFlow DIV id='target3'", | |
| 18 "LayoutBlockFlow (positioned) DIV", | |
| 19 "LayoutBlockFlow (positioned) DIV", | |
| 20 "LayoutBlockFlow DIV", | |
| 21 ]; | |
| 22 function paintInvalidationTest() | 16 function paintInvalidationTest() |
| 23 { | 17 { |
| 24 document.getElementById('target1').style.width = ''; | 18 document.getElementById('target1').style.width = ''; |
| 25 document.getElementById('target2').style.height = ''; | 19 document.getElementById('target2').style.height = ''; |
| 26 document.getElementById('target3').style.display = ''; | 20 document.getElementById('target3').style.display = ''; |
| 27 } | 21 } |
| 28 </script> | 22 </script> |
| 29 </head> | 23 </head> |
| 30 <body onload="runPaintInvalidationTest();"> | 24 <body onload="runPaintInvalidationTest();"> |
| 31 <div style="position: absolute; border: medium solid green; top: 8px; height
: 100px;"> | 25 <div style="position: absolute; border: medium solid green; top: 8px; height
: 100px;"> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 44 <div style="background: green;"> | 38 <div style="background: green;"> |
| 45 <div style="position: relative;"> | 39 <div style="position: relative;"> |
| 46 <div id="main-content"> | 40 <div id="main-content"> |
| 47 </div> | 41 </div> |
| 48 </div> | 42 </div> |
| 49 <div id="target3" style="display: block;"></div> | 43 <div id="target3" style="display: block;"></div> |
| 50 </div> | 44 </div> |
| 51 </div> | 45 </div> |
| 52 </body> | 46 </body> |
| 53 </html> | 47 </html> |
| OLD | NEW |