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

Side by Side Diff: third_party/WebKit/PerformanceTests/Layout/multicol/tall-content-short-columns.html

Issue 1457013002: Lock page scale factor in tall-content-short-columns performance tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/PerformanceTests/Layout/multicol/tall-content-short-columns-realistic.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- Lock the page scale factor to prevent rescaling when the content width chan ges. -->
3 <meta name="viewport" content="initial-scale=1.0 minimum-scale=1.0 maximum-scale =1.0">
2 <script src="../../resources/runner.js"></script> 4 <script src="../../resources/runner.js"></script>
3 <body style="overflow:scroll;"> <!-- don't want auto scrollbars to affect the nu mber of layout passes. --> 5 <body style="overflow:scroll;"> <!-- don't want auto scrollbars to affect the nu mber of layout passes. -->
4 <pre id="log"></pre> 6 <pre id="log"></pre>
5 <div id="target" style="position:absolute; top:0; left:0; display:none; -web kit-columns:2; column-fill:auto; width:40em; height:2em;"> 7 <div id="target" style="position:absolute; top:0; left:0; display:none; -web kit-columns:2; column-fill:auto; width:40em; height:2em;">
6 <div style="height:1234567890px;">xxxxxxxxxx</div> 8 <div style="height:1234567890px;">xxxxxxxxxx</div>
7 </div> 9 </div>
8 <script> 10 <script>
9 var target = document.getElementById("target"); 11 var target = document.getElementById("target");
10 var style = target.style; 12 var style = target.style;
11 13
12 function test() { 14 function test() {
13 style.display = "block"; 15 style.display = "block";
14 PerfTestRunner.forceLayoutOrFullFrame(); 16 PerfTestRunner.forceLayoutOrFullFrame();
15 17
16 // Do some hit-testing. 18 // Do some hit-testing.
17 document.caretRangeFromPoint(10, 10); 19 document.caretRangeFromPoint(10, 10);
18 20
19 style.display = "none"; 21 style.display = "none";
20 PerfTestRunner.forceLayoutOrFullFrame(); 22 PerfTestRunner.forceLayoutOrFullFrame();
21 } 23 }
22 24
23 PerfTestRunner.measureRunsPerSecond({ 25 PerfTestRunner.measureRunsPerSecond({
24 description: "Measures performance of multicol layout with many columns. ", 26 description: "Measures performance of multicol layout with many columns. ",
25 run: test 27 run: test
26 }); 28 });
27 </script> 29 </script>
28 </body> 30 </body>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/PerformanceTests/Layout/multicol/tall-content-short-columns-realistic.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698