OLD | NEW |
1 <!-- Based on fast/repaint/invisible-objects.html --> | 1 <!-- Based on fast/repaint/invisible-objects.html --> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="resources/paint-invalidation-test.js"></script> | 4 <script src="resources/paint-invalidation-test.js"></script> |
5 <script> | 5 <script> |
6 window.expectedPaintInvalidationObjects = [ | |
7 "InlineTextBox ''", | |
8 "RootInlineBox", | |
9 "LayoutText #text", | |
10 "InlineTextBox 'is invisible'", | |
11 ]; | |
12 function paintInvalidationTest() | 6 function paintInvalidationTest() |
13 { | 7 { |
14 document.getElementById("block").style.height = "100px"; | 8 document.getElementById("block").style.height = "100px"; |
15 document.getElementById("inline").innerText = "is invisible"; | 9 document.getElementById("inline").innerText = "is invisible"; |
16 } | 10 } |
17 </script> | 11 </script> |
18 </head> | 12 </head> |
19 <body onload="runPaintInvalidationTest()"> | 13 <body onload="runPaintInvalidationTest()"> |
20 <div style="visibility: hidden; position: relative;"> | 14 <div style="visibility: hidden; position: relative;"> |
21 <span id="inline">Invisible text</span> | 15 <span id="inline">Invisible text</span> |
22 </div> | 16 </div> |
23 <div style="visibility: hidden; position: relative;"> | 17 <div style="visibility: hidden; position: relative;"> |
24 <div id="block" style="height: 50px;"></div> | 18 <div id="block" style="height: 50px;"></div> |
25 </div> | 19 </div> |
26 </body> | 20 </body> |
27 </html> | 21 </html> |
OLD | NEW |