| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../resources/runner.js"></script> | 2 <script src="../../resources/runner.js"></script> |
| 3 <style> | 3 <style> |
| 4 #target div { display:table; } /* Just to slow it down a little. */ | 4 #target div { display:table; } /* Just to slow it down a little. */ |
| 5 </style> | 5 </style> |
| 6 <pre id="log"></pre> | 6 <pre id="log"></pre> |
| 7 <!-- This multicol container has 3 columns. It contains a row of columns, a span
ner, and another | 7 <!-- This multicol container has 3 columns. It contains a row of columns, a span
ner, and another |
| 8 row of columns. Height is fixed and column-fill is auto, so we only need to
balance the row | 8 row of columns. Height is fixed and column-fill is auto, so we only need to
balance the row |
| 9 that precedes the spanner. That first row has 12 equal pieces of content, s
o it should be | 9 that precedes the spanner. That first row has 12 equal pieces of content, s
o it should be |
| 10 possible to balance it perfectly and easily (i.e. it should only need 2 lay
out passes). It | 10 possible to balance it perfectly and easily (i.e. it should only need 2 lay
out passes). It |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 <div><div><div><div><div><div><div><div>content content</div></div></div></d
iv></div></div></div></div> | 31 <div><div><div><div><div><div><div><div>content content</div></div></div></d
iv></div></div></div></div> |
| 32 <div><div><div><div><div><div><div><div>content content</div></div></div></d
iv></div></div></div></div> | 32 <div><div><div><div><div><div><div><div>content content</div></div></div></d
iv></div></div></div></div> |
| 33 <div><div><div><div><div><div><div><div>content content</div></div></div></d
iv></div></div></div></div> | 33 <div><div><div><div><div><div><div><div>content content</div></div></div></d
iv></div></div></div></div> |
| 34 </div> | 34 </div> |
| 35 <script> | 35 <script> |
| 36 var target = document.getElementById("target"); | 36 var target = document.getElementById("target"); |
| 37 var style = target.style; | 37 var style = target.style; |
| 38 | 38 |
| 39 function test() { | 39 function test() { |
| 40 style.display = "block"; | 40 style.display = "block"; |
| 41 PerfTestRunner.forceLayoutOrFullFrame(); | 41 PerfTestRunner.forceLayout(); |
| 42 style.display = "none"; | 42 style.display = "none"; |
| 43 PerfTestRunner.forceLayoutOrFullFrame(); | 43 PerfTestRunner.forceLayout(); |
| 44 } | 44 } |
| 45 | 45 |
| 46 PerfTestRunner.measureRunsPerSecond({ | 46 PerfTestRunner.measureRunsPerSecond({ |
| 47 description: "Measures performance of multicol layout when not balancing
columns.", | 47 description: "Measures performance of multicol layout when not balancing
columns.", |
| 48 run: test | 48 run: test |
| 49 }); | 49 }); |
| 50 </script> | 50 </script> |
| OLD | NEW |