OLD | NEW |
1 <script> | 1 <script> |
2 function test() | 2 function test() |
3 { | 3 { |
4 document.body.offsetTop; // force layout | 4 document.body.offsetTop; // force layout |
5 if (window.testRunner) | |
6 testRunner.display(); | |
7 var t = document.getElementById('t'); | 5 var t = document.getElementById('t'); |
8 t.style.position = 'relative'; | 6 t.style.position = 'relative'; |
9 document.body.offsetTop; // force layout | 7 document.body.offsetTop; // force layout |
10 t.lastChild.removeChild(t.lastChild.lastChild); | 8 t.lastChild.removeChild(t.lastChild.lastChild); |
11 if (window.testRunner) | |
12 testRunner.display(); | |
13 } | 9 } |
14 </script> | 10 </script> |
15 <body onload="test()"> | 11 <body onload="test()"> |
16 <p> | 12 <p> |
17 This is a regression test for <i><a href="http://bugs.webkit.org/show_bu
g.cgi?id=11672">http://bugs.webkit.org/show_bug.cgi?id=11672</a> | 13 This is a regression test for <i><a href="http://bugs.webkit.org/show_bu
g.cgi?id=11672">http://bugs.webkit.org/show_bug.cgi?id=11672</a> |
18 REGRESSION (r17068): Repro crash due to painting without layout</i>. It
should not crash. | 14 REGRESSION (r17068): Repro crash due to painting without layout</i>. It
should not crash. |
19 </p> | 15 </p> |
20 <table id = "t"> | 16 <table id = "t"> |
21 <tr> | 17 <tr> |
22 <td> | 18 <td> |
23 <div style="position: absolute;">Lorem ipsum</div> | 19 <div style="position: absolute;">Lorem ipsum</div> |
24 </td> | 20 </td> |
25 </tr> | 21 </tr> |
26 <tr> | 22 <tr> |
27 <td></td></tr></table> | 23 <td></td></tr></table> |
28 </body> | 24 </body> |
OLD | NEW |