| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Line height calculation performance test</title> | 4 <title>Line height calculation performance test</title> |
| 5 <script src="../resources/runner.js"></script> | 5 <script src="../resources/runner.js"></script> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <pre id="log"></pre> | 8 <pre id="log"></pre> |
| 9 <div id="target" style="width: 300px; display: none;"> | 9 <div id="target" style="width: 300px; display: none;"> |
| 10 </div> | 10 </div> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 style.display = "block"; | 22 style.display = "block"; |
| 23 style.width = "280px"; | 23 style.width = "280px"; |
| 24 target.offsetLeft; | 24 target.offsetLeft; |
| 25 style.width = "300px"; | 25 style.width = "300px"; |
| 26 target.offsetLeft; | 26 target.offsetLeft; |
| 27 style.width = "290px"; | 27 style.width = "290px"; |
| 28 target.offsetLeft; | 28 target.offsetLeft; |
| 29 style.display = "none"; | 29 style.display = "none"; |
| 30 } | 30 } |
| 31 | 31 |
| 32 PerfTestRunner.measureTime({ run: test }); | 32 PerfTestRunner.measureTime({ |
| 33 description: "Measures performance of line-height calculation in lay
out.", |
| 34 run: test |
| 35 }); |
| 33 </script> | 36 </script> |
| 34 </body> | 37 </body> |
| 35 </html> | 38 </html> |
| OLD | NEW |