<!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>[183156] trunk/Source/WebCore</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/183156">183156</a></dd>
<dt>Author</dt> <dd>roger_fong@apple.com</dd>
<dt>Date</dt> <dd>2015-04-22 19:11:34 -0700 (Wed, 22 Apr 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Inline media control icons scale down when video is too small.
https://bugs.webkit.org/show_bug.cgi?id=144073.
&lt;rdar://problem/20659451&gt;

Reviewed by Darin Adler.

Just make sure the buttons use min-width.
* Modules/mediacontrols/mediaControlsApple.css:
(audio::-webkit-media-controls-rewind-button):
(audio::-webkit-media-controls-play-button):
(audio::-webkit-media-controls-panel .mute-box):
(video::-webkit-media-controls-volume-max-button):
(audio::-webkit-media-controls-wireless-playback-picker-button):
(audio::-webkit-media-controls-toggle-closed-captions-button):
(audio::-webkit-media-controls-fullscreen-button):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreModulesmediacontrolsmediaControlsApplecss">trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.css</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (183155 => 183156)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-04-22 23:28:48 UTC (rev 183155)
+++ trunk/Source/WebCore/ChangeLog        2015-04-23 02:11:34 UTC (rev 183156)
</span><span class="lines">@@ -1,3 +1,21 @@
</span><ins>+2015-04-22  Roger Fong  &lt;roger_fong@apple.com&gt;
+
+        Inline media control icons scale down when video is too small.
+        https://bugs.webkit.org/show_bug.cgi?id=144073.
+        &lt;rdar://problem/20659451&gt;
+
+        Reviewed by Darin Adler.
+
+        Just make sure the buttons use min-width.
+        * Modules/mediacontrols/mediaControlsApple.css:
+        (audio::-webkit-media-controls-rewind-button):
+        (audio::-webkit-media-controls-play-button):
+        (audio::-webkit-media-controls-panel .mute-box):
+        (video::-webkit-media-controls-volume-max-button):
+        (audio::-webkit-media-controls-wireless-playback-picker-button):
+        (audio::-webkit-media-controls-toggle-closed-captions-button):
+        (audio::-webkit-media-controls-fullscreen-button):
+
</ins><span class="cx"> 2015-04-22  Jer Noble  &lt;jer.noble@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Add new optimized fullscreen delegate methods
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediacontrolsmediaControlsApplecss"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.css (183155 => 183156)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.css        2015-04-22 23:28:48 UTC (rev 183155)
+++ trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.css        2015-04-23 02:11:34 UTC (rev 183156)
</span><span class="lines">@@ -164,6 +164,7 @@
</span><span class="cx"> audio::-webkit-media-controls-rewind-button {
</span><span class="cx">     background-image: url('data:image/svg+xml,&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 15 17&quot; fill=&quot;rgba(255,255,255,0.45)&quot;&gt;&lt;path d=&quot;m 7.9131,2 0,-1.548 -2.586,2.155 0,-2.171 -2.582,2.208 2.582,2.175 0,-2.139 2.586,2.155 0,-1.276 c 3.138,0.129 5.491,2.681 5.543,5.838 l -1.031,0 0.016,0.215 1.015,0 c -0.06,3.19 -2.629,5.765 -5.819,5.833 l 0,-1.018 -0.214,0 0,1.021 c -3.21,-0.047 -5.801,-2.631 -5.862,-5.836 l 1.045,0 -0.016,-0.215 -1.045,0 c -0.052,-0.288 -0.318,-0.654 -0.766,-0.654 -0.538,0 -0.755,0.484 -0.755,0.75 0,4.146 3.331,7.506 7.476,7.506 4.146,0 7.506,-3.36 7.506,-7.506 0,-4.059 -3.066,-7.357 -7.093,-7.493&quot;/&gt;&lt;path d=&quot;m 5.1729,11.0518 c -0.38,0 -0.668,-0.129 -0.945,-0.366 -0.083,-0.071 -0.186,-0.134 -0.338,-0.134 -0.277,0 -0.511,0.238 -0.511,0.521 0,0.154 0.083,0.301 0.179,0.383 0.394,0.346 0.911,0.563 1.601,0.563 1.077,0 1.739,-0.451 1.739,-1.608 l 0,-0.013 c 0,-0.911 -0.6
 41,-1.265 -1.296,-1.376 l 0.945,-0.919 c 0.193,-0.19 0.317,-0.337 0.317,-0.604 0,-0.294 -0.228,-0.477 -0.538,-0.477 l -2.354,0 c -0.248,0 -0.455,0.21 -0.455,0.464 0,0.253 0.207,0.463 0.455,0.463 l 1.485,0 -0.939,0.961 c -0.166,0.169 -0.228,0.295 -0.228,0.444 0,0.25 0.207,0.463 0.455,0.463 l 0.166,0 c 0.594,0 0.945,0.222 0.945,0.624 l 0,0.012 c 0,0.367 -0.282,0.599 -0.453,0.599&quot;/&gt;&lt;path d=&quot;m 10.354,9.5342 c 0,0.876 -0.379,1.525 -0.979,1.525 -0.599,0 -0.992,-0.655 -0.992,-1.539 l 0,-0.012 c 0,-0.884 0.388,-1.527 0.979,-1.527 0.592,0 0.992,0.663 0.992,1.539 l 0,0.014 z m -0.979,-2.512 c -1.197,0 -2.008,1.097 -2.008,2.498 l 0,0.014 c 0,1.401 0.792,2.484 1.995,2.484 1.205,0 2.01,-1.097 2.01,-2.498 l 0,-0.012 c 0,-1.402 -0.805,-2.486 -1.997,-2.486&quot;/&gt;&lt;/svg&gt;');
</span><span class="cx">     width: 16px;
</span><ins>+    min-width: 16px;
</ins><span class="cx">     height: 18px;
</span><span class="cx">     margin-bottom: 1px;
</span><span class="cx">     margin-left: 16px;
</span><span class="lines">@@ -174,6 +175,7 @@
</span><span class="cx">     background-image: url('data:image/svg+xml,&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 12 15&quot; fill=&quot;rgba(255,255,255,0.45)&quot;&gt;&lt;rect x=&quot;0&quot; y=&quot;1&quot; width=&quot;4&quot; height=&quot;13&quot;/&gt;&lt;rect x=&quot;8&quot; y=&quot;1&quot; width=&quot;4&quot; height=&quot;13&quot;/&gt;&lt;/svg&gt;');
</span><span class="cx">     margin-left: 16px;
</span><span class="cx">     width: 12px;
</span><ins>+    min-width: 12px;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> video::-webkit-media-controls-play-button.paused,
</span><span class="lines">@@ -185,6 +187,7 @@
</span><span class="cx"> video::-webkit-media-controls-panel .mute-box,
</span><span class="cx"> audio::-webkit-media-controls-panel .mute-box {
</span><span class="cx">     width: 14px;
</span><ins>+    min-width: 14px;
</ins><span class="cx">     height: 25px;
</span><span class="cx">     margin-right: 16px;
</span><span class="cx">     position: relative;
</span><span class="lines">@@ -198,6 +201,7 @@
</span><span class="cx"> audio::-webkit-media-controls-mute-button,
</span><span class="cx"> video::-webkit-media-controls-volume-max-button {
</span><span class="cx">     width: 14px;
</span><ins>+    min-width: 14px;
</ins><span class="cx">     background-image: url('data:image/svg+xml,&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 15 15&quot; stroke=&quot;rgba(255,255,255,0.45)&quot; fill=&quot;none&quot; stroke-width=&quot;1.25&quot; stroke-linecap=&quot;round&quot;&gt;&lt;defs&gt;&lt;clipPath id=&quot;cut-hole&quot;&gt;&lt;rect x=&quot;3&quot; y=&quot;0&quot; width=&quot;3.5&quot; height=&quot;15&quot;/&gt;&lt;/clipPath&gt;&lt;/defs&gt;&lt;path stroke=&quot;none&quot; fill=&quot;rgba(255,255,255,0.45)&quot; shape-rendering=&quot;crispEdges&quot; d=&quot;M 0,10 0,6 3,6 3,10 z&quot;/&gt;&lt;path stroke=&quot;none&quot; fill=&quot;rgba(255,255,255,0.45)&quot; clip-path=&quot;url(#cut-hole)&quot; shape-rendering=&quot;crispEdges&quot; d=&quot;M 3.5,6 6.5,3 6.5,13 3.5,10 z&quot;/&gt;&lt;path d=&quot;M 9,5.5 C 10.75,7 10.75,9 9,10.5&quot;/&gt;&lt;path d=&quot;M 10,3.5 C 13,4.5 13,11.5 10,12.5&quot; /&gt;&lt;path d=&quot;M 11,1.5 C 15.67,3.5 15.67,12.5 11,14.5&quot;/&g
 t;&lt;/svg&gt;');
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -301,6 +305,7 @@
</span><span class="cx">     background-image: url('data:image/svg+xml,&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 16 15&quot; stroke=&quot;rgba(255,255,255,0.45)&quot;&gt;&lt;defs&gt; &lt;clipPath fill-rule=&quot;evenodd&quot; id=&quot;cut-hole&quot;&gt;&lt;path d=&quot;M 0,0.5 L 16,0.5 L 16,15.5 L 0,15.5 z M 0,14.5 L 16,14.5 L 8,5 z&quot;/&gt;&lt;/clipPath&gt;&lt;/defs&gt;&lt;rect fill=&quot;none&quot; clip-path=&quot;url(#cut-hole)&quot; x=&quot;0.5&quot; y=&quot;2&quot; width=&quot;15&quot; height=&quot;8&quot;/&gt;&lt;path stroke=&quot;none&quot; fill=&quot;rgba(255,255,255,0.45)&quot; d=&quot;M 3.5,13.25 L 12.5,13.25 L 8,8 z&quot;/&gt;&lt;/svg&gt;');
</span><span class="cx">     margin-right: 16px;
</span><span class="cx">     width: 16px;
</span><ins>+    min-width: 16px;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> video::-webkit-media-controls-wireless-playback-picker-button.playing,
</span><span class="lines">@@ -311,6 +316,7 @@
</span><span class="cx"> video::-webkit-media-controls-toggle-closed-captions-button,
</span><span class="cx"> audio::-webkit-media-controls-toggle-closed-captions-button {
</span><span class="cx">     width: 16px;
</span><ins>+    min-width: 16px;
</ins><span class="cx">     margin-right: 16px;
</span><span class="cx">     background-image: url('data:image/svg+xml,&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 16 15&quot; stroke=&quot;rgba(255,255,255,0.45)&quot;  fill=&quot;none&quot;&gt;&lt;defs&gt; &lt;clipPath id=&quot;cut-hole&quot;&gt;&lt;rect x=&quot;0&quot; y=&quot;1&quot; width=&quot;16&quot; height=&quot;10&quot;/&gt;&lt;rect x=&quot;0&quot; y=&quot;11&quot; width=&quot;9&quot; height=&quot;1&quot;/&gt;&lt;rect x=&quot;11&quot; y=&quot;11&quot; width=&quot;5&quot; height=&quot;1&quot;/&gt;&lt;/clipPath&gt;&lt;/defs&gt; &lt;rect x=&quot;0.5&quot; y=&quot;1.5&quot; rx=&quot;1&quot; ry=&quot;1&quot; width=&quot;15&quot; height=&quot;10&quot; clip-path=&quot;url(#cut-hole)&quot;/&gt;&lt;path d=&quot;M 2,6.5 h 4&quot;/&gt;&lt;path d=&quot;M 7,6.5 h 7&quot;/&gt;&lt;path d=&quot;M 3,8.5 h 2&quot;/&gt;&lt;path d=&quot;M 6,8.5 h 3&quot;/&gt;&lt;path d=&quot;M 10,8.5 h 3&quot;/&gt;&lt;path d=&quot;M 8.5,11.5 L 8.5,13.75 L 11,11&quot;/&gt;&lt;
 /svg&gt;');
</span><span class="cx">     outline: 0;
</span><span class="lines">@@ -411,6 +417,7 @@
</span><span class="cx">     background-image: url('data:image/svg+xml,&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 14 15&quot; stroke=&quot;rgba(255,255,255,0.45)&quot; stroke-width=&quot;1.25&quot; fill=&quot;none&quot;&gt;&lt;path d=&quot;M 7,1.5 L 12.5,1.5 L 12.5,7&quot;/&gt;&lt;path d=&quot;M 0.5,8 L 0.5,13.5 L 6,13.5&quot;/&gt;&lt;path stroke-linecap=&quot;round&quot; d=&quot;M 12.5,1.5 L 7.5,6.5&quot;/&gt;&lt;path stroke-linecap=&quot;round&quot; d=&quot;M 0.5,13.5 L 5.5,8.5&quot;/&gt;&lt;/svg&gt;');
</span><span class="cx">     margin-right: 7px;
</span><span class="cx">     width: 14px;
</span><ins>+    min-width: 14px;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> video::-webkit-media-controls-fullscreen-button.exit,
</span></span></pre>
</div>
</div>

</body>
</html>