| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Line breaking performance test</title> | 4 <title>Line breaking 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 <p> | 10 <p> |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 style.display = "block"; | 79 style.display = "block"; |
| 80 style.width = "280px"; | 80 style.width = "280px"; |
| 81 target.offsetLeft; | 81 target.offsetLeft; |
| 82 style.width = "300px"; | 82 style.width = "300px"; |
| 83 target.offsetLeft; | 83 target.offsetLeft; |
| 84 style.width = "290px"; | 84 style.width = "290px"; |
| 85 target.offsetLeft; | 85 target.offsetLeft; |
| 86 style.display = "none"; | 86 style.display = "none"; |
| 87 } | 87 } |
| 88 | 88 |
| 89 PerfTestRunner.measureRunsPerSecond({ run: test }); | 89 PerfTestRunner.measureRunsPerSecond({ |
| 90 description: "Measures performance of line breaking in layout.", |
| 91 run: test |
| 92 }); |
| 90 </script> | 93 </script> |
| 91 </body> | 94 </body> |
| 92 </html> | 95 </html> |
| OLD | NEW |