Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(272)

Side by Side Diff: third_party/WebKit/PerformanceTests/Layout/long-line-nowrap-spans-collapse.html

Issue 2285053002: Fix O(n!) in setLogicalWidthForTextRun (LayoutBlockFlowLine) (Closed)
Patch Set: Comments and perf tests updated Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../resources/runner.js"></script> 2 <script src="../resources/runner.js"></script>
3 <script src="resources/line-layout-perf-test.js"></script> 3 <script src="resources/line-layout-perf-test.js"></script>
4 <style> 4 <style>
5 #container { 5 #container {
6 width: 400px; 6 width: 400px;
7 white-space: nowrap; 7 white-space: nowrap;
8 } 8 }
9 </style> 9 </style>
10 <body onload="run()"> 10 <body onload="run()">
11 <div id="container"></div> 11 <div id="container"></div>
12 <script> 12 <script>
13 'use strict'; 13 'use strict';
14 14
15 function run() { 15 function run() {
16 var test = new LineLayoutPerfTest(container); 16 var test = new LineLayoutPerfTest(container);
17 test.spanCount = 10; 17 test.spanCount = 10;
18 test.lineCount = 80; 18 test.lineCount = 1000;
19 test.wordSeparator = ' '; // Make all word separators collapsible. 19 test.wordSeparator = ' '; // Make all word separators collapsible.
20 test.run('Measures performance of "white-space: nowrap" with multiple spans an d collapsible spaces.'); 20 test.run('Measures performance of "white-space: nowrap" with multiple spans an d collapsible spaces.');
21 } 21 }
22 </script> 22 </script>
23 </body> 23 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698