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