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

Side by Side Diff: third_party/WebKit/PerformanceTests/ShadowDOM/ChangingClassName.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 <h2>Selected</h2> 9 <h2>Selected</h2>
10 <div id="selected"></div> 10 <div id="selected"></div>
(...skipping 29 matching lines...) Expand all
40 for (var i = 2; i < 100; ++i) { 40 for (var i = 2; i < 100; ++i) {
41 for (var j = 0; j < nDivs; ++j) { 41 for (var j = 0; j < nDivs; ++j) {
42 if (j % i == 0) { 42 if (j % i == 0) {
43 array[j].className = 'selected'; 43 array[j].className = 'selected';
44 selected.appendChild(array[j]); 44 selected.appendChild(array[j]);
45 } else { 45 } else {
46 array[j].className = ''; 46 array[j].className = '';
47 nonSelected.appendChild(array[j]); 47 nonSelected.appendChild(array[j]);
48 } 48 }
49 } 49 }
50 PerfTestRunner.forceLayoutOrFullFrame(); 50 PerfTestRunner.forceLayout();
51 } 51 }
52 } 52 }
53 53
54 function done() 54 function done()
55 { 55 {
56 wrapper.innerHTML = ''; 56 wrapper.innerHTML = '';
57 } 57 }
58 58
59 setup(); 59 setup();
60 60
61 PerfTestRunner.measureTime({ 61 PerfTestRunner.measureTime({
62 description: "Measure distribution and layout performance when className is changed (without ShadowDOM)", 62 description: "Measure distribution and layout performance when className is changed (without ShadowDOM)",
63 run: run, 63 run: run,
64 done: done 64 done: done
65 }); 65 });
66 </script> 66 </script>
67 </body> 67 </body>
68 </html> 68 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698