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

Unified Diff: third_party/WebKit/PerformanceTests/Layout/attach-inlines.html

Issue 1550513003: Skip dirtying lines when attaching children prior to attaching oneself (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Skip dirtying lines when attaching children prior to attaching oneself Created 4 years, 5 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 | third_party/WebKit/PerformanceTests/Layout/attach-inlines-2.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/PerformanceTests/Layout/attach-inlines.html
diff --git a/third_party/WebKit/PerformanceTests/Layout/attach-inlines.html b/third_party/WebKit/PerformanceTests/Layout/attach-inlines.html
new file mode 100644
index 0000000000000000000000000000000000000000..6b3500727622b4667d0d5f704137f705fdee9aa2
--- /dev/null
+++ b/third_party/WebKit/PerformanceTests/Layout/attach-inlines.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+ <div id="div" style="display: none;">
+ <span id="span"></span>
+ </div>
+<script src="../resources/runner.js"></script>
+<script>
+ var div = document.getElementById("div");
+ var style = div.style;
+
+ function test() {
+ style.display = "block";
+ PerfTestRunner.forceLayout();
+
+ for (var i = 0; i < 1000; ++i)
+ span.appendChild(document.createElement("span")).textContent = "span";
+ PerfTestRunner.forceLayout();
+
+ style.display = "none";
+ span.innerHTML = '';
+ PerfTestRunner.forceLayout();
+ }
+
+ PerfTestRunner.measureRunsPerSecond({
+ description: "Measures performance of attaching a large number of inlines to an inline.",
+ run: test
+ });
+</script>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/PerformanceTests/Layout/attach-inlines-2.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698