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

Side by Side Diff: third_party/WebKit/PerformanceTests/ShadowDOM/ChangingSelectWithoutShadow.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 var nonSelected = document.getElementById('nonselected'); 40 var nonSelected = document.getElementById('nonselected');
41 41
42 for (var i = 0; i < 100; ++i) { 42 for (var i = 0; i < 100; ++i) {
43 for (var j = 0; j < typeNames.length; ++j) { 43 for (var j = 0; j < typeNames.length; ++j) {
44 for (var k = 0; k < nDivs; ++k) { 44 for (var k = 0; k < nDivs; ++k) {
45 if (array[k].className == typeNames[j]) 45 if (array[k].className == typeNames[j])
46 selected.appendChild(array[k]); 46 selected.appendChild(array[k]);
47 else 47 else
48 nonSelected.appendChild(array[k]); 48 nonSelected.appendChild(array[k]);
49 } 49 }
50 PerfTestRunner.forceLayoutOrFullFrame(); 50 PerfTestRunner.forceLayout();
51 } 51 }
52 } 52 }
53 } 53 }
54 54
55 function done() 55 function done()
56 { 56 {
57 wrapper.innerHTML = ''; 57 wrapper.innerHTML = '';
58 } 58 }
59 59
60 setup(); 60 setup();
61 61
62 PerfTestRunner.measureTime({ 62 PerfTestRunner.measureTime({
63 description: "Measure distribution and layout performance when we do the alm ost same thing as select attribute of content element is changed using JavaScrip t", 63 description: "Measure distribution and layout performance when we do the alm ost same thing as select attribute of content element is changed using JavaScrip t",
64 run: run, 64 run: run,
65 done: done 65 done: done
66 }); 66 });
67 </script> 67 </script>
68 </body> 68 </body>
69 </html> 69 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698