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

Side by Side 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, 4 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 | third_party/WebKit/PerformanceTests/Layout/attach-inlines-2.html » ('j') | 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 <div id="div" style="display: none;">
3 <span id="span"></span>
4 </div>
5 <script src="../resources/runner.js"></script>
6 <script>
7 var div = document.getElementById("div");
8 var style = div.style;
9
10 function test() {
11 style.display = "block";
12 PerfTestRunner.forceLayout();
13
14 for (var i = 0; i < 1000; ++i)
15 span.appendChild(document.createElement("span")).textContent = " span";
16 PerfTestRunner.forceLayout();
17
18 style.display = "none";
19 span.innerHTML = '';
20 PerfTestRunner.forceLayout();
21 }
22
23 PerfTestRunner.measureRunsPerSecond({
24 description: "Measures performance of attaching a large number of inline s to an inline.",
25 run: test
26 });
27 </script>
28 </html>
OLDNEW
« 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