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

Side by Side Diff: third_party/WebKit/PerformanceTests/ShadowDOM/SmallDistributionWithLayout.html

Issue 1557953002: Revert unfinished work of "full-frame-measurement" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@PerfPaint
Patch Set: Created 4 years, 11 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script type="text/javascript" src="../resources/runner.js"></script> 4 <script type="text/javascript" src="../resources/runner.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 7
8 <div id="wrapper"> 8 <div id="wrapper">
9 <div id="host"></div> 9 <div id="host"></div>
10 </div> 10 </div>
(...skipping 19 matching lines...) Expand all
30 30
31 function run() 31 function run()
32 { 32 {
33 var host = document.getElementById('host'); 33 var host = document.getElementById('host');
34 var nLoops = window.nLoops; 34 var nLoops = window.nLoops;
35 35
36 var div = document.createElement('div'); 36 var div = document.createElement('div');
37 for (var i = 0; i < nLoops; ++i) { 37 for (var i = 0; i < nLoops; ++i) {
38 host.appendChild(div); 38 host.appendChild(div);
39 host.removeChild(div); 39 host.removeChild(div);
40 PerfTestRunner.forceLayoutOrFullFrame(); 40 PerfTestRunner.forceLayout();
41 } 41 }
42 } 42 }
43 43
44 function done() 44 function done()
45 { 45 {
46 wrapper.innerHTML = ''; 46 wrapper.innerHTML = '';
47 } 47 }
48 48
49 49
50 setup(); 50 setup();
51 51
52 PerfTestRunner.measureTime({ 52 PerfTestRunner.measureTime({
53 description: "Measure Distribution and Layout time (with a few host children )", 53 description: "Measure Distribution and Layout time (with a few host children )",
54 run: run, 54 run: run,
55 done: done 55 done: done
56 }); 56 });
57 </script> 57 </script>
58 </body> 58 </body>
59 </html> 59 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698