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

Side by Side Diff: third_party/WebKit/PerformanceTests/Layout/flexbox-column-wrap.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 src="../resources/runner.js"></script> 4 <script src="../resources/runner.js"></script>
5 </head> 5 </head>
6 <body style="overflow-y: scroll"> 6 <body style="overflow-y: scroll">
7 7
8 <div id="flexbox" style="height: 400px; flex-flow: column wrap; justify-content: center; align-items: center;"> 8 <div id="flexbox" style="height: 400px; flex-flow: column wrap; justify-content: center; align-items: center;">
9 <div style="flex: 1 180px">1</div> 9 <div style="flex: 1 180px">1</div>
10 <div style="flex: 2 auto">2 2</div> 10 <div style="flex: 2 auto">2 2</div>
11 <div style="flex: 3 180px">3 3 3</div> 11 <div style="flex: 3 180px">3 3 3</div>
12 <div style="flex: 4 auto">4 4 4 4</div> 12 <div style="flex: 4 auto">4 4 4 4</div>
13 <div style="flex: 5 180px">5 5 5 5 5</div> 13 <div style="flex: 5 180px">5 5 5 5 5</div>
14 <div style="flex: 6 auto">6 6 6 6 6 6</div> 14 <div style="flex: 6 auto">6 6 6 6 6 6</div>
15 <div style="flex: 7 180px">7 7 7 7 7 7 7</div> 15 <div style="flex: 7 180px">7 7 7 7 7 7 7</div>
16 <div style="flex: 8 auto">8 8 8 8 8 8 8 8</div> 16 <div style="flex: 8 auto">8 8 8 8 8 8 8 8</div>
17 <div style="flex: 9 180px">9 9 9 9 9 9 9 9 9</div> 17 <div style="flex: 9 180px">9 9 9 9 9 9 9 9 9</div>
18 <div style="flex: 10 auto">10 10 10 10 10 10 10 10 10</div> 18 <div style="flex: 10 auto">10 10 10 10 10 10 10 10 10</div>
19 </div> 19 </div>
20 20
21 </body> 21 </body>
22 <script> 22 <script>
23 function runTest() 23 function runTest()
24 { 24 {
25 document.getElementById("flexbox").style.display = 'flex'; 25 document.getElementById("flexbox").style.display = 'flex';
26 PerfTestRunner.forceLayoutOrFullFrame(); 26 PerfTestRunner.forceLayout();
27 document.getElementById("flexbox").style.display = ''; 27 document.getElementById("flexbox").style.display = '';
28 PerfTestRunner.forceLayoutOrFullFrame(); 28 PerfTestRunner.forceLayout();
29 } 29 }
30 30
31 PerfTestRunner.measureRunsPerSecond({ 31 PerfTestRunner.measureRunsPerSecond({
32 description: "Measures performance of flexbox with wrapping (column).", 32 description: "Measures performance of flexbox with wrapping (column).",
33 run: runTest, 33 run: runTest,
34 done: function() { 34 done: function() {
35 document.getElementById("flexbox").style.display = 'none'; 35 document.getElementById("flexbox").style.display = 'none';
36 } 36 }
37 }); 37 });
38 </script> 38 </script>
39 </html> 39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698