OLD | NEW |
| 1 <!-- Based on fast/repaint/erase-overflow.html --> |
1 <html> | 2 <html> |
2 <head> | 3 <head> |
3 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=11935</title> | 4 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=11935</title> |
4 <style type="text/css"> | 5 <style type="text/css"> |
5 div.square { width: 100px; height: 100px; } | 6 div.square { width: 100px; height: 100px; } |
6 </style> | 7 </style> |
7 <script type="text/javascript" src="resources/text-based-repaint.js"></scrip
t> | 8 <script type="text/javascript" src="resources/paint-invalidation-test.js"></
script> |
8 <script type="text/javascript"> | 9 <script type="text/javascript"> |
9 function repaintTest() | 10 window.expectedPaintInvalidationObjects = [ |
| 11 "LayoutBlockFlow DIV id='target' class='square'", |
| 12 "LayoutBlockFlow DIV class='square'", |
| 13 ]; |
| 14 function paintInvalidationTest() |
10 { | 15 { |
11 document.getElementById("target").style.overflow = "hidden"; | 16 document.getElementById("target").style.overflow = "hidden"; |
12 } | 17 } |
13 </script> | 18 </script> |
14 </head> | 19 </head> |
15 <body onload="runRepaintTest()"> | 20 <body onload="runPaintInvalidationTest()"> |
16 <div id="target" class="square"> | 21 <div id="target" class="square"> |
17 <div class="square" style="background-color: green"></div> | 22 <div class="square" style="background-color: green"></div> |
18 <div class="square" style="background-color: red"></div> | 23 <div class="square" style="background-color: red"></div> |
19 </div> | 24 </div> |
20 </body> | 25 </body> |
21 </html> | 26 </html> |
OLD | NEW |