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

Side by Side Diff: third_party/WebKit/PerformanceTests/ShadowDOM/DistributionWithMultipleShadowRoots.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 24 matching lines...) Expand all
35 35
36 function run() 36 function run()
37 { 37 {
38 var host = document.getElementById('host'); 38 var host = document.getElementById('host');
39 var nLoops = window.nLoops; 39 var nLoops = window.nLoops;
40 40
41 var div = document.createElement('div'); 41 var div = document.createElement('div');
42 for (var i = 0; i < nLoops; ++i) { 42 for (var i = 0; i < nLoops; ++i) {
43 host.appendChild(div); 43 host.appendChild(div);
44 host.removeChild(div); 44 host.removeChild(div);
45 PerfTestRunner.forceLayoutOrFullFrame(); 45 PerfTestRunner.forceLayout();
46 } 46 }
47 } 47 }
48 48
49 function done() 49 function done()
50 { 50 {
51 wrapper.innerHTML = ''; 51 wrapper.innerHTML = '';
52 } 52 }
53 53
54 54
55 setup(); 55 setup();
56 56
57 PerfTestRunner.measureTime({ 57 PerfTestRunner.measureTime({
58 description: "Measure Distribution and Layout time in a case there are multi ple ShadowRoots", 58 description: "Measure Distribution and Layout time in a case there are multi ple ShadowRoots",
59 run: run, 59 run: run,
60 done: done 60 done: done
61 }); 61 });
62 </script> 62 </script>
63 </body> 63 </body>
64 </html> 64 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698