OLD | NEW |
1 <!-- Based on fast/repaint/block-shift-repaint.html --> | 1 <!-- Based on fast/repaint/block-shift-repaint.html --> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=12079</title> | 4 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=12079</title> |
5 <style type="text/css"> | 5 <style type="text/css"> |
6 div.playground { position: relative; width: 90px; height: 90px; } | 6 div.playground { position: relative; width: 90px; height: 90px; } |
7 .red { background-color: yellow; } | 7 .red { background-color: yellow; } |
8 .blue { background-color: blue; } | 8 .blue { background-color: blue; } |
9 .green { background-color: green; } | 9 .green { background-color: green; } |
10 .zero { height: 0; width: 60px; } | 10 .zero { height: 0; width: 60px; } |
11 .half { height: 30px; width: 60px; } | 11 .half { height: 30px; width: 60px; } |
12 .full { height: 60px; width: 60px; } | 12 .full { height: 60px; width: 60px; } |
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 type="text/javascript"> | 15 <script type="text/javascript"> |
16 window.expectedPaintInvalidationObjects = [ | |
17 "LayoutBlockFlow DIV id='div1' class='blue half'", | |
18 "LayoutBlockFlow DIV class='red half'", | |
19 "LayoutBlockFlow DIV class='green half'", | |
20 "LayoutBlockFlow DIV id='top' class='blue half'", | |
21 "LayoutBlockFlow DIV class='red half'", | |
22 "LayoutBlockFlow DIV class='green half'", | |
23 "LayoutBlockFlow DIV id='div2' class='zero'", | |
24 "LayoutBlockFlow DIV class='green half'", | |
25 "LayoutBlockFlow DIV class='red half'", | |
26 "LayoutBlockFlow DIV id='innerDiv'", | |
27 "LayoutBlockFlow DIV class='half'", | |
28 "LayoutBlockFlow DIV class='half'", | |
29 ]; | |
30 function paintInvalidationTest() | 16 function paintInvalidationTest() |
31 { | 17 { |
32 var div1 = document.getElementById("div1"); | 18 var div1 = document.getElementById("div1"); |
33 div1.style.height = "0"; | 19 div1.style.height = "0"; |
34 | 20 |
35 var div2 = document.getElementById("div2"); | 21 var div2 = document.getElementById("div2"); |
36 div2.style.height = "30px"; | 22 div2.style.height = "30px"; |
37 | 23 |
38 var top = document.getElementById("top"); | 24 var top = document.getElementById("top"); |
39 top.style.height = "0"; | 25 top.style.height = "0"; |
(...skipping 24 matching lines...) Expand all Loading... |
64 | 50 |
65 <div class="playground" style="margin-top: 30px;"> | 51 <div class="playground" style="margin-top: 30px;"> |
66 <div style="width: 10px; margin: auto;"> | 52 <div style="width: 10px; margin: auto;"> |
67 <div id="innerDiv"></div> | 53 <div id="innerDiv"></div> |
68 </div> | 54 </div> |
69 <div class="half"></div> | 55 <div class="half"></div> |
70 <div class="half" style="border-top: solid yellow 8px;"></div> | 56 <div class="half" style="border-top: solid yellow 8px;"></div> |
71 </div> | 57 </div> |
72 </body> | 58 </body> |
73 </html> | 59 </html> |
OLD | NEW |