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

Unified Diff: third_party/WebKit/PerformanceTests/Layout/attach-inlines-2.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
Index: third_party/WebKit/PerformanceTests/Layout/attach-inlines-2.html
diff --git a/third_party/WebKit/PerformanceTests/Layout/attach-inlines-2.html b/third_party/WebKit/PerformanceTests/Layout/attach-inlines-2.html
new file mode 100644
index 0000000000000000000000000000000000000000..632fd0716c7884621f8644987d13ef9964d9888a
--- /dev/null
+++ b/third_party/WebKit/PerformanceTests/Layout/attach-inlines-2.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+ <div>
+ <span id="span"></span>
+ </div>
+<script src="../resources/runner.js"></script>
+<script>
+ var span = document.getElementById("span");
+
+ function test() {
+ PerfTestRunner.forceLayout();
+ for (var i = 0; i < 10; ++i)
+ span.appendChild(document.createElement("span")).textContent = "span";
+ PerfTestRunner.forceLayout();
+ span.innerHTML = '';
+ }
+
+ PerfTestRunner.measureRunsPerSecond({
+ description: "Measures performance of attaching a large number of inlines to an attached inline.",
+ run: test
+ });
+</script>
+</html>

Powered by Google App Engine
This is Rietveld 408576698