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

Side by Side Diff: third_party/WebKit/PerformanceTests/Layout/multicol/deeply-nested-tables.html

Issue 1695193006: Performance test for deeply nested tables inside multicol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change width instead of toggling display:none, shorter container, avoid line layout, avoid painting. Created 4 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/runner.js"></script>
3 <style>
4 #target div { display:table; }
5 #target span { display:block; break-inside:avoid; height:2em; }
6 </style>
7 <pre id="log"></pre>
8 <!-- We only want to measure layout performance, so try to avoid irrelevant thin gs, such as painting. -->
9 <div style="overflow:hidden; width:0; height:0;">
10 <div id="target" style="columns:3; column-fill:auto; width:40em; height:13em ; line-height:2em;">
11 <div>
12 <span></span>
13 <div>
14 <span></span>
15 <div>
16 <span></span>
17 <div>
18 <span></span>
19 <div>
20 <span></span>
21 <div>
22 <span></span>
23 <div>
24 <span></span>
25 <div>
26 <span></span>
27 <div>
28 <span></span>
29 <div>
30 <span></span>
31 <div>
32 <span></span>
33 <div>
34 <span></span>
35 <div>
36 <span></span>
37 </div>
38 </div>
39 </div>
40 </div>
41 </div>
42 </div>
43 </div>
44 </div>
45 </div>
46 </div>
47 </div>
48 </div>
49 </div>
50 </div>
51 </div>
52 <script>
53 var target = document.getElementById("target");
54 var style = target.style;
55
56 function test() {
57 style.width = "41em";
58 PerfTestRunner.forceLayout();
59 style.width = "40em";
60 PerfTestRunner.forceLayout();
61 }
62
63 PerfTestRunner.measureRunsPerSecond({
64 description: "Measures performance of multicol layout in deeply nested t ables.",
65 run: test
66 });
67 </script>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698