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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/PerformanceTests/Layout/multicol/deeply-nested-tables.html
diff --git a/third_party/WebKit/PerformanceTests/Layout/multicol/deeply-nested-tables.html b/third_party/WebKit/PerformanceTests/Layout/multicol/deeply-nested-tables.html
new file mode 100644
index 0000000000000000000000000000000000000000..3f2f903cedd0a13138997a0c482e50596115d498
--- /dev/null
+++ b/third_party/WebKit/PerformanceTests/Layout/multicol/deeply-nested-tables.html
@@ -0,0 +1,67 @@
+<!DOCTYPE html>
+<script src="../../resources/runner.js"></script>
+<style>
+ #target div { display:table; }
+ #target span { display:block; break-inside:avoid; height:2em; }
+</style>
+<pre id="log"></pre>
+<!-- We only want to measure layout performance, so try to avoid irrelevant things, such as painting. -->
+<div style="overflow:hidden; width:0; height:0;">
+ <div id="target" style="columns:3; column-fill:auto; width:40em; height:13em; line-height:2em;">
+ <div>
+ <span></span>
+ <div>
+ <span></span>
+ <div>
+ <span></span>
+ <div>
+ <span></span>
+ <div>
+ <span></span>
+ <div>
+ <span></span>
+ <div>
+ <span></span>
+ <div>
+ <span></span>
+ <div>
+ <span></span>
+ <div>
+ <span></span>
+ <div>
+ <span></span>
+ <div>
+ <span></span>
+ <div>
+ <span></span>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+</div>
+<script>
+ var target = document.getElementById("target");
+ var style = target.style;
+
+ function test() {
+ style.width = "41em";
+ PerfTestRunner.forceLayout();
+ style.width = "40em";
+ PerfTestRunner.forceLayout();
+ }
+
+ PerfTestRunner.measureRunsPerSecond({
+ description: "Measures performance of multicol layout in deeply nested tables.",
+ run: test
+ });
+</script>
« 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