<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[193975] trunk/PerformanceTests</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/193975">193975</a></dd>
<dt>Author</dt> <dd>jonlee@apple.com</dd>
<dt>Date</dt> <dd>2015-12-11 13:47:31 -0800 (Fri, 11 Dec 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Improve Animometer on iOS
https://bugs.webkit.org/show_bug.cgi?id=152180

Reviewed by Simon Fraser.

Improve experience on phones. Make the canvas take
up the whole screen.

* Animometer/runner/animometer.html: Add meta viewport.
Remove the container div.
* Animometer/runner/resources/animometer.css: Have buttons lay
out vertically. Update detail arrow glyph. Make the suites and
options section lay out vertically. Remove the top spacers since
we want the canvas to take over the whole screen. Minimal display
is recommended for use.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkPerformanceTestsAnimometerrunneranimometerhtml">trunk/PerformanceTests/Animometer/runner/animometer.html</a></li>
<li><a href="#trunkPerformanceTestsAnimometerrunnerresourcesanimometercss">trunk/PerformanceTests/Animometer/runner/resources/animometer.css</a></li>
<li><a href="#trunkPerformanceTestsChangeLog">trunk/PerformanceTests/ChangeLog</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkPerformanceTestsAnimometerrunneranimometerhtml"></a>
<div class="modfile"><h4>Modified: trunk/PerformanceTests/Animometer/runner/animometer.html (193974 => 193975)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/PerformanceTests/Animometer/runner/animometer.html        2015-12-11 21:43:45 UTC (rev 193974)
+++ trunk/PerformanceTests/Animometer/runner/animometer.html        2015-12-11 21:47:31 UTC (rev 193975)
</span><span class="lines">@@ -1,6 +1,7 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><ins>+    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, user-scalable=no&quot;&gt;
</ins><span class="cx">     &lt;link rel=&quot;stylesheet&quot; href=&quot;resources/animometer.css&quot;&gt;
</span><span class="cx">     &lt;script src=&quot;../resources/strings.js&quot;&gt;&lt;/script&gt;
</span><span class="cx">     &lt;script src=&quot;../resources/sampler.js&quot;&gt;&lt;/script&gt;
</span><span class="lines">@@ -14,110 +15,110 @@
</span><span class="cx"> &lt;body&gt;
</span><span class="cx">     &lt;main&gt;
</span><span class="cx">     &lt;div class=&quot;spacer&quot;&gt;&lt;/div&gt;
</span><del>-    &lt;div id=&quot;section-container&quot;&gt;
-        &lt;section id=&quot;home&quot; class=&quot;selected&quot;&gt;
-            &lt;header&gt;
-                &lt;h1&gt;Animometer&lt;/h1&gt;
-            &lt;/header&gt;
-            &lt;div id=&quot;suites&quot;&gt;
-                &lt;h2&gt;Suites:&lt;/h2&gt;
-                &lt;ul class=&quot;tree&quot;&gt;&lt;/ul&gt;
-            &lt;/div&gt;
-            &lt;div id=&quot;options&quot;&gt;
-                &lt;h2&gt;Options:&lt;/h2&gt;
-                &lt;form name=&quot;benchmark-options&quot;&gt;
</del><ins>+
+    &lt;section id=&quot;home&quot; class=&quot;selected&quot;&gt;
+        &lt;header&gt;
+            &lt;h1&gt;Animometer&lt;/h1&gt;
+        &lt;/header&gt;
+        &lt;div id=&quot;suites&quot;&gt;
+            &lt;h2&gt;Suites:&lt;/h2&gt;
+            &lt;ul class=&quot;tree&quot;&gt;&lt;/ul&gt;
+        &lt;/div&gt;
+        &lt;div id=&quot;options&quot;&gt;
+            &lt;h2&gt;Options:&lt;/h2&gt;
+            &lt;form name=&quot;benchmark-options&quot;&gt;
+            &lt;ul&gt;
+            &lt;li&gt;
+                &lt;label&gt;Test length: &lt;input type=&quot;number&quot; id=&quot;test-interval&quot; value=&quot;10&quot;&gt; seconds each&lt;/label&gt;
+            &lt;/li&gt;
+            &lt;li&gt;
+                &lt;h3&gt;Display:&lt;/h3&gt;
</ins><span class="cx">                 &lt;ul&gt;
</span><del>-                &lt;li&gt;
-                    &lt;label&gt;Test length: &lt;input type=&quot;number&quot; id=&quot;test-interval&quot; value=&quot;10&quot;&gt; seconds each&lt;/label&gt;
-                &lt;/li&gt;
-                &lt;li&gt;
-                    &lt;h3&gt;Display:&lt;/h3&gt;
-                    &lt;ul&gt;
-                        &lt;li&gt;&lt;label&gt;&lt;input name=&quot;display&quot; type=&quot;radio&quot; value=&quot;minimal&quot; checked&gt; Minimal&lt;/label&gt;&lt;/li&gt;
-                        &lt;li&gt;&lt;label&gt;&lt;input name=&quot;display&quot; type=&quot;radio&quot; value=&quot;progress-bar&quot; checked&gt; Progress bar&lt;/label&gt;&lt;/li&gt;
-                        &lt;li&gt;&lt;label&gt;&lt;input name=&quot;display&quot; type=&quot;radio&quot; value=&quot;statistics-table&quot;&gt; Statistics table&lt;/label&gt;&lt;/li&gt;
-                    &lt;/ul&gt;
-                &lt;/li&gt;
-                &lt;li&gt;
-                    &lt;h3&gt;Adjusting the test complexity:&lt;/h3&gt;
-                    &lt;ul&gt;
-                        &lt;li&gt;&lt;label&gt;&lt;input name=&quot;adjustment&quot; type=&quot;radio&quot; value=&quot;fixed&quot;&gt; Keep constant&lt;/label&gt;&lt;/li&gt;
-                        &lt;li&gt;&lt;label&gt;&lt;input name=&quot;adjustment&quot; type=&quot;radio&quot; value=&quot;fixed-after-warmup&quot;&gt; Keep constant after warmup to target FPS&lt;/label&gt;&lt;/li&gt;
-                        &lt;li&gt;&lt;label&gt;&lt;input name=&quot;adjustment&quot; type=&quot;radio&quot; value=&quot;adaptive&quot; checked&gt; Maintain target FPS&lt;/label&gt;&lt;/li&gt;
-                    &lt;/ul&gt;
-                &lt;/li&gt;
-                &lt;li&gt;
-                    &lt;label&gt;Target frame rate: &lt;input type=&quot;number&quot; id=&quot;frame-rate&quot; value=&quot;50&quot;&gt; FPS&lt;/label&gt;
-                &lt;/li&gt;
-                &lt;li&gt;
-                    &lt;label&gt;&lt;input type=&quot;checkbox&quot; id=&quot;estimated-frame-rate&quot; checked&gt; Filter frame rate calculation&lt;/label&gt;
-                &lt;/li&gt;
</del><ins>+                    &lt;li&gt;&lt;label&gt;&lt;input name=&quot;display&quot; type=&quot;radio&quot; value=&quot;minimal&quot; checked&gt; Minimal&lt;/label&gt;&lt;/li&gt;
+                    &lt;li&gt;&lt;label&gt;&lt;input name=&quot;display&quot; type=&quot;radio&quot; value=&quot;progress-bar&quot; checked&gt; Progress bar&lt;/label&gt;&lt;/li&gt;
+                    &lt;li&gt;&lt;label&gt;&lt;input name=&quot;display&quot; type=&quot;radio&quot; value=&quot;statistics-table&quot;&gt; Statistics table&lt;/label&gt;&lt;/li&gt;
</ins><span class="cx">                 &lt;/ul&gt;
</span><del>-                &lt;/form&gt;
-            &lt;/div&gt;
-            &lt;footer&gt;
-                &lt;button class=&quot;large-button&quot; onclick=&quot;benchmarkController.startTest()&quot;&gt;Start Test&lt;/button&gt;
-            &lt;/footer&gt;
-        &lt;/section&gt;
-        &lt;section id=&quot;running&quot;&gt;
-            &lt;div id=&quot;running-test&quot;&gt;&lt;/div&gt;
-            &lt;div id=&quot;progress&quot;&gt;
-                &lt;div id=&quot;progress-completed&quot;&gt;&lt;/div&gt;
-            &lt;/div&gt;
-            &lt;div id=&quot;record&quot;&gt;
-                &lt;table class=&quot;results-table&quot;&gt;&lt;/table&gt;
-            &lt;/div&gt;
-        &lt;/section&gt;
-        &lt;section id=&quot;results&quot;&gt;
-            &lt;header&gt;
-                &lt;h1&gt;Results:&lt;/h1&gt;
-            &lt;/header&gt;
-            &lt;data&gt;
-                &lt;table class=&quot;results-table&quot;&gt;&lt;/table&gt;
-            &lt;/data&gt;
-            &lt;footer&gt;
-                &lt;button class=&quot;large-button&quot; onclick=&quot;benchmarkController.selectResults()&quot;&gt;Select&lt;/button&gt;
-                &lt;button class=&quot;large-button&quot; onclick=&quot;benchmarkController.showJSON()&quot;&gt;JSON&lt;/button&gt;
-                &lt;button class=&quot;large-button&quot; onclick=&quot;benchmarkController.startTest()&quot;&gt;Test Again&lt;/button&gt;
-            &lt;/footer&gt;
-        &lt;/section&gt;  
-        &lt;section id=&quot;json&quot;&gt;
-            &lt;header&gt;
-                &lt;h1&gt;JSON:&lt;/h1&gt;
-            &lt;/header&gt;
-            &lt;data&gt;
-                &lt;div class=&quot;results-json&quot; contentEditable=&quot;true&quot;&gt;&lt;/div&gt;
-            &lt;/data&gt;
-            &lt;footer&gt;
-                &lt;button class=&quot;large-button&quot; onclick=&quot;benchmarkController.selectJSON('json')&quot;&gt;Select&lt;/button&gt;
-                &lt;button class=&quot;large-button&quot; onclick=&quot;benchmarkController.showResults()&quot;&gt;Results&lt;/button&gt;
-                &lt;button class=&quot;large-button&quot; onclick=&quot;benchmarkController.startTest()&quot;&gt;Test Again&lt;/button&gt;
-            &lt;/footer&gt;
-        &lt;/section&gt;  
-        &lt;section id=&quot;test-json&quot;&gt;
-            &lt;header&gt;
-                &lt;h1&gt;JSON:&lt;/h1&gt;
-            &lt;/header&gt;
-            &lt;data&gt;
-                &lt;div class=&quot;results-json&quot; contentEditable=&quot;true&quot;&gt;&lt;/div&gt;
-            &lt;/data&gt;
-            &lt;footer&gt;
-                &lt;button class=&quot;large-button&quot; onclick=&quot;benchmarkController.selectJSON('test-json')&quot;&gt;Select&lt;/button&gt;
-                &lt;button class=&quot;large-button&quot; onclick=&quot;benchmarkController.showResults()&quot;&gt;Results&lt;/button&gt;
-                &lt;button class=&quot;large-button&quot; onclick=&quot;benchmarkController.startTest()&quot;&gt;Test Again&lt;/button&gt;        
-            &lt;/footer&gt;
-        &lt;/section&gt;
-        &lt;section id=&quot;test-graph&quot;&gt;
-            &lt;header&gt;
-                &lt;h1&gt;Graph:&lt;/h1&gt;
-            &lt;/header&gt;
-            &lt;data&gt;&lt;/data&gt;
-            &lt;footer&gt;
-                &lt;button class=&quot;large-button&quot; onclick=&quot;benchmarkController.showResults()&quot;&gt;Results&lt;/button&gt;
-                &lt;button class=&quot;large-button&quot; onclick=&quot;benchmarkController.startTest()&quot;&gt;Test Again&lt;/button&gt;        
-            &lt;/footer&gt;
-        &lt;/section&gt;  
-    &lt;/div&gt;
</del><ins>+            &lt;/li&gt;
+            &lt;li&gt;
+                &lt;h3&gt;Adjusting the test complexity:&lt;/h3&gt;
+                &lt;ul&gt;
+                    &lt;li&gt;&lt;label&gt;&lt;input name=&quot;adjustment&quot; type=&quot;radio&quot; value=&quot;fixed&quot;&gt; Keep constant&lt;/label&gt;&lt;/li&gt;
+                    &lt;li&gt;&lt;label&gt;&lt;input name=&quot;adjustment&quot; type=&quot;radio&quot; value=&quot;fixed-after-warmup&quot;&gt; Keep constant after warmup to target FPS&lt;/label&gt;&lt;/li&gt;
+                    &lt;li&gt;&lt;label&gt;&lt;input name=&quot;adjustment&quot; type=&quot;radio&quot; value=&quot;adaptive&quot; checked&gt; Maintain target FPS&lt;/label&gt;&lt;/li&gt;
+                &lt;/ul&gt;
+            &lt;/li&gt;
+            &lt;li&gt;
+                &lt;label&gt;Target frame rate: &lt;input type=&quot;number&quot; id=&quot;frame-rate&quot; value=&quot;50&quot;&gt; FPS&lt;/label&gt;
+            &lt;/li&gt;
+            &lt;li&gt;
+                &lt;label&gt;&lt;input type=&quot;checkbox&quot; id=&quot;estimated-frame-rate&quot; checked&gt; Filter frame rate calculation&lt;/label&gt;
+            &lt;/li&gt;
+            &lt;/ul&gt;
+            &lt;/form&gt;
+        &lt;/div&gt;
+        &lt;footer&gt;
+            &lt;button class=&quot;large-button&quot; onclick=&quot;benchmarkController.startTest()&quot;&gt;Start Test&lt;/button&gt;
+        &lt;/footer&gt;
+    &lt;/section&gt;
+    &lt;section id=&quot;running&quot;&gt;
+        &lt;div id=&quot;running-test&quot;&gt;&lt;/div&gt;
+        &lt;div id=&quot;progress&quot;&gt;
+            &lt;div id=&quot;progress-completed&quot;&gt;&lt;/div&gt;
+        &lt;/div&gt;
+        &lt;div id=&quot;record&quot;&gt;
+            &lt;table class=&quot;results-table&quot;&gt;&lt;/table&gt;
+        &lt;/div&gt;
+    &lt;/section&gt;
+    &lt;section id=&quot;results&quot;&gt;
+        &lt;header&gt;
+            &lt;h1&gt;Results:&lt;/h1&gt;
+        &lt;/header&gt;
+        &lt;data&gt;
+            &lt;table class=&quot;results-table&quot;&gt;&lt;/table&gt;
+        &lt;/data&gt;
+        &lt;footer&gt;
+            &lt;button class=&quot;large-button&quot; onclick=&quot;benchmarkController.selectResults()&quot;&gt;Select&lt;/button&gt;
+            &lt;button class=&quot;large-button&quot; onclick=&quot;benchmarkController.showJSON()&quot;&gt;JSON&lt;/button&gt;
+            &lt;button class=&quot;large-button&quot; onclick=&quot;benchmarkController.startTest()&quot;&gt;Test Again&lt;/button&gt;
+        &lt;/footer&gt;
+    &lt;/section&gt;
+    &lt;section id=&quot;json&quot;&gt;
+        &lt;header&gt;
+            &lt;h1&gt;JSON:&lt;/h1&gt;
+        &lt;/header&gt;
+        &lt;data&gt;
+            &lt;div class=&quot;results-json&quot; contentEditable=&quot;true&quot;&gt;&lt;/div&gt;
+        &lt;/data&gt;
+        &lt;footer&gt;
+            &lt;button class=&quot;large-button&quot; onclick=&quot;benchmarkController.selectJSON('json')&quot;&gt;Select&lt;/button&gt;
+            &lt;button class=&quot;large-button&quot; onclick=&quot;benchmarkController.showResults()&quot;&gt;Results&lt;/button&gt;
+            &lt;button class=&quot;large-button&quot; onclick=&quot;benchmarkController.startTest()&quot;&gt;Test Again&lt;/button&gt;
+        &lt;/footer&gt;
+    &lt;/section&gt;
+    &lt;section id=&quot;test-json&quot;&gt;
+        &lt;header&gt;
+            &lt;h1&gt;JSON:&lt;/h1&gt;
+        &lt;/header&gt;
+        &lt;data&gt;
+            &lt;div class=&quot;results-json&quot; contentEditable=&quot;true&quot;&gt;&lt;/div&gt;
+        &lt;/data&gt;
+        &lt;footer&gt;
+            &lt;button class=&quot;large-button&quot; onclick=&quot;benchmarkController.selectJSON('test-json')&quot;&gt;Select&lt;/button&gt;
+            &lt;button class=&quot;large-button&quot; onclick=&quot;benchmarkController.showResults()&quot;&gt;Results&lt;/button&gt;
+            &lt;button class=&quot;large-button&quot; onclick=&quot;benchmarkController.startTest()&quot;&gt;Test Again&lt;/button&gt;
+        &lt;/footer&gt;
+    &lt;/section&gt;
+    &lt;section id=&quot;test-graph&quot;&gt;
+        &lt;header&gt;
+            &lt;h1&gt;Graph:&lt;/h1&gt;
+        &lt;/header&gt;
+        &lt;data&gt;&lt;/data&gt;
+        &lt;footer&gt;
+            &lt;button class=&quot;large-button&quot; onclick=&quot;benchmarkController.showResults()&quot;&gt;Results&lt;/button&gt;
+            &lt;button class=&quot;large-button&quot; onclick=&quot;benchmarkController.startTest()&quot;&gt;Test Again&lt;/button&gt;
+        &lt;/footer&gt;
+    &lt;/section&gt;
+
</ins><span class="cx">     &lt;div class=&quot;spacer&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/main&gt;
</span><span class="cx"> &lt;/body&gt;
</span></span></pre></div>
<a id="trunkPerformanceTestsAnimometerrunnerresourcesanimometercss"></a>
<div class="modfile"><h4>Modified: trunk/PerformanceTests/Animometer/runner/resources/animometer.css (193974 => 193975)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/PerformanceTests/Animometer/runner/resources/animometer.css        2015-12-11 21:43:45 UTC (rev 193974)
+++ trunk/PerformanceTests/Animometer/runner/resources/animometer.css        2015-12-11 21:47:31 UTC (rev 193975)
</span><span class="lines">@@ -59,6 +59,12 @@
</span><span class="cx">     border-color: DarkCyan !important;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+@media screen and (max-device-width: 414px) {
+    button.large-button {
+        margin: 1em 0;
+    }
+}
+
</ins><span class="cx"> /* -------------------------------------------------------------------------- */
</span><span class="cx"> /*                               Tree                                         */
</span><span class="cx"> /* -------------------------------------------------------------------------- */
</span><span class="lines">@@ -115,7 +121,7 @@
</span><span class="cx">     margin: 0 0 0 -2em;
</span><span class="cx">     width: 1em;
</span><span class="cx">     height: 1em;
</span><del>-    content: '\25B6';
</del><ins>+    content: '\25BA';
</ins><span class="cx">     text-align: center;
</span><span class="cx">     line-height: 2.5em;
</span><span class="cx">     font-size: .5em;
</span><span class="lines">@@ -125,6 +131,17 @@
</span><span class="cx">     content: '\25BC';
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+@media screen and (max-device-width: 414px) {
+    .tree {
+        padding-left: 1em;
+    }
+    .tree &gt; li &gt; label.tree-label:before {
+        font-size: 1em;
+        margin-left: -1.75em;
+        line-height: 1em;
+    }
+}
+
</ins><span class="cx"> /* -------------------------------------------------------------------------- */
</span><span class="cx"> /*                              Results Table                                 */
</span><span class="cx"> /* -------------------------------------------------------------------------- */
</span><span class="lines">@@ -215,9 +232,9 @@
</span><span class="cx">     padding: 10px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-section#home {
</del><ins>+#home {
</ins><span class="cx">     min-height: 600px;
</span><del>-    height: initial;
</del><ins>+    height: auto;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .display-progress-bar section,
</span><span class="lines">@@ -263,16 +280,48 @@
</span><span class="cx">         height: 800px;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    section#home {
</del><ins>+    #home {
</ins><span class="cx">         min-height: 800px;
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+@media screen and (max-device-width: 414px) {
+    .spacer {
+        -webkit-flex: 0 0 0;
+        -ms-flex: 0 0 0;
+        flex: 0 0 0;
+    }
+
+    section {
+        box-sizing: border-box;
+        width: 100%;
+        height: 100%;
+        align-self: stretch;
+        padding: 0 5px;
+    }
+
+    #home {
+        min-height: 100%;
+    }
+
+    .display-progress-bar section,
+    .display-statistics-table section {
+        border: 0;
+    }
+
+    section &gt; footer {
+        -webkit-flex-direction: column;
+        -ms-flex-direction: column;
+        flex-direction: column;
+        max-height: initial;
+    }
+}
+
</ins><span class="cx"> /* -------------------------------------------------------------------------- */
</span><span class="cx"> /*                                 Home Section                               */
</span><span class="cx"> /* -------------------------------------------------------------------------- */
</span><span class="cx"> 
</span><del>-section#home {
</del><ins>+#home {
</ins><span class="cx">     -webkit-flex-direction: row;
</span><span class="cx">     -ms-flex-direction: row;
</span><span class="cx">     flex-direction: row;
</span><span class="lines">@@ -284,7 +333,7 @@
</span><span class="cx">     align-content: flex-start;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-section#home h2 {
</del><ins>+#home h2 {
</ins><span class="cx">     font-size: 1.2em;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -307,13 +356,13 @@
</span><span class="cx">     flex: 1 1 auto;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-section#home &gt; header &gt; h1 {
</del><ins>+#home &gt; header &gt; h1 {
</ins><span class="cx">     margin: 0 auto;
</span><span class="cx">     width: 70%;
</span><span class="cx">     text-align: center;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-section#home input[type=&quot;number&quot;] {
</del><ins>+#home input[type=&quot;number&quot;] {
</ins><span class="cx">     width: 50px;
</span><span class="cx"> }
</span><span class="cx">  
</span><span class="lines">@@ -333,9 +382,6 @@
</span><span class="cx">     padding: 0 0 0 1em;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#suites ul ul li {
-}
-
</del><span class="cx"> #options ul {
</span><span class="cx">     margin: 0;
</span><span class="cx">     padding: 0;
</span><span class="lines">@@ -361,11 +407,24 @@
</span><span class="cx">     padding: .1em 0;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+@media screen and (max-device-width: 414px) {
+    #suites,
+    #options {
+        padding: 0 5px;
+        margin: 0;
+    }
+    #suites {
+        -webkit-flex: 0 1 100%;
+        -ms-flex: 0 1 100%;
+        flex: 0 1 100%;
+    }
+}
+
</ins><span class="cx"> /* -------------------------------------------------------------------------- */
</span><span class="cx"> /*                           Running Section                                  */
</span><span class="cx"> /* -------------------------------------------------------------------------- */
</span><span class="cx"> 
</span><del>-section#running {
</del><ins>+#running {
</ins><span class="cx">     position: relative;
</span><span class="cx">     -ms-flex-align: center;
</span><span class="cx">     -webkit-align-items: center;
</span><span class="lines">@@ -376,20 +435,25 @@
</span><span class="cx">     justify-content: center;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-section#running &gt; #running-test {
</del><ins>+#running-test {
</ins><span class="cx">     width: 100%;
</span><span class="cx">     height: 100%;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-section#running &gt; #running-test &gt; iframe {
</del><ins>+#running-test &gt; iframe {
</ins><span class="cx">     width: 800px;
</span><span class="cx">     height: 600px;
</span><span class="cx">     border: 0px none;
</span><span class="cx">     overflow: hidden;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.display-progress-bar section#running &gt; #progress,
-.display-statistics-table section#running &gt; #progress {
</del><ins>+#progress, #record {
+    display: none;
+}
+
+.display-progress-bar #progress,
+.display-statistics-table #progress {
+    display: block;
</ins><span class="cx">     position: absolute;
</span><span class="cx">     bottom: -6px;
</span><span class="cx">     left: 60px;
</span><span class="lines">@@ -400,8 +464,8 @@
</span><span class="cx">     border-right: 6px solid rgb(46, 51, 55);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.display-progress-bar section#running &gt; #progress &gt; #progress-completed,
-.display-statistics-table section#running &gt; #progress &gt; #progress-completed {
</del><ins>+.display-progress-bar #progress-completed,
+.display-statistics-table #progress-completed {
</ins><span class="cx">     position: absolute;
</span><span class="cx">     top: 0;
</span><span class="cx">     left: 0;
</span><span class="lines">@@ -410,7 +474,9 @@
</span><span class="cx">     background-color: rgb(235, 235, 235);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-section#running &gt; #record {
</del><ins>+.display-progress-bar #record,
+.display-statistics-table #record {
+    display: block;
</ins><span class="cx">     position: absolute;
</span><span class="cx">     bottom: -95px;
</span><span class="cx">     left: 0px;
</span><span class="lines">@@ -419,12 +485,26 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> @media screen and (min-device-width: 1800px) {
</span><del>-    section#running &gt; #running-test &gt; iframe {
</del><ins>+    #running-test &gt; iframe {
</ins><span class="cx">         width: 1600px;
</span><span class="cx">         height: 800px;
</span><span class="cx">     }
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+@media screen and (max-device-width: 414px) {
+    #running {
+        padding: 0;
+    }
+
+    #running-test {
+        overflow: hidden;
+    }
+
+    #running-test &gt; iframe {
+        width: calc(100%);
+        height: calc(100%);
+    }
+}
</ins><span class="cx"> /* -------------------------------------------------------------------------- */
</span><span class="cx"> /*                           Results Section                                  */
</span><span class="cx"> /* -------------------------------------------------------------------------- */
</span></span></pre></div>
<a id="trunkPerformanceTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/PerformanceTests/ChangeLog (193974 => 193975)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/PerformanceTests/ChangeLog        2015-12-11 21:43:45 UTC (rev 193974)
+++ trunk/PerformanceTests/ChangeLog        2015-12-11 21:47:31 UTC (rev 193975)
</span><span class="lines">@@ -1,3 +1,21 @@
</span><ins>+2015-12-11  Jon Lee  &lt;jonlee@apple.com&gt;
+
+        Improve Animometer on iOS
+        https://bugs.webkit.org/show_bug.cgi?id=152180
+
+        Reviewed by Simon Fraser.
+
+        Improve experience on phones. Make the canvas take
+        up the whole screen.
+
+        * Animometer/runner/animometer.html: Add meta viewport.
+        Remove the container div.
+        * Animometer/runner/resources/animometer.css: Have buttons lay
+        out vertically. Update detail arrow glyph. Make the suites and
+        options section lay out vertically. Remove the top spacers since
+        we want the canvas to take over the whole screen. Minimal display
+        is recommended for use.
+
</ins><span class="cx"> 2015-12-07  Jon Lee  &lt;jonlee@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Update suites for benchmark
</span></span></pre>
</div>
</div>

</body>
</html>