<!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>[186487] 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/186487">186487</a></dd>
<dt>Author</dt> <dd>dino@apple.com</dd>
<dt>Date</dt> <dd>2015-07-07 19:19:45 -0700 (Tue, 07 Jul 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>[iOS] MediaControls: Start Play and Can't Play buttons need to be cutout and blurred
https://bugs.webkit.org/show_bug.cgi?id=146226

Reviewed by Simon Fraser.

This patch takes what Said Abou-Hallawa posted in an earlier revision and
makes a few tweaks to workaround the bugs he's listed.

Replicate the iOS System blur backdrop in pure CSS, so that the large
start button looks more correct. Also add artwork for a failure state.

* Modules/mediacontrols/mediaControlsiOS.css: New style rules for the start
button, which now is a collection of elements rather than a &lt;button&gt;.
(video::-webkit-media-controls-start-playback-button):
(video::-webkit-media-controls-start-playback-background):
(video::-webkit-media-controls-start-playback-tint):

* Modules/mediacontrols/mediaControlsiOS.js:
(ControllerIOS.prototype.createBase): Replace the &lt;button&gt; with the hierarchy of
elements to replicate the blur. Give some of them a class attribute, so they
can match selectors (see the bugs Said filed in the original bugzilla).
(ControllerIOS.prototype.handleStartPlaybackButtonTouchStart): Toggle classes on
the hierarchy as needed.
(ControllerIOS.prototype.handleStartPlaybackButtonTouchEnd): Ditto.
(ControllerIOS.prototype.updateStatusDisplay): Ditto.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreModulesmediacontrolsmediaControlsiOScss">trunk/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.css</a></li>
<li><a href="#trunkSourceWebCoreModulesmediacontrolsmediaControlsiOSjs">trunk/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (186486 => 186487)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-07-08 01:53:42 UTC (rev 186486)
+++ trunk/Source/WebCore/ChangeLog        2015-07-08 02:19:45 UTC (rev 186487)
</span><span class="lines">@@ -1,3 +1,31 @@
</span><ins>+2015-07-07  Dean Jackson  &lt;dino@apple.com&gt;
+
+        [iOS] MediaControls: Start Play and Can't Play buttons need to be cutout and blurred
+        https://bugs.webkit.org/show_bug.cgi?id=146226
+
+        Reviewed by Simon Fraser.
+
+        This patch takes what Said Abou-Hallawa posted in an earlier revision and
+        makes a few tweaks to workaround the bugs he's listed.
+
+        Replicate the iOS System blur backdrop in pure CSS, so that the large
+        start button looks more correct. Also add artwork for a failure state.
+
+        * Modules/mediacontrols/mediaControlsiOS.css: New style rules for the start
+        button, which now is a collection of elements rather than a &lt;button&gt;.
+        (video::-webkit-media-controls-start-playback-button):
+        (video::-webkit-media-controls-start-playback-background):
+        (video::-webkit-media-controls-start-playback-tint):
+
+        * Modules/mediacontrols/mediaControlsiOS.js:
+        (ControllerIOS.prototype.createBase): Replace the &lt;button&gt; with the hierarchy of
+        elements to replicate the blur. Give some of them a class attribute, so they
+        can match selectors (see the bugs Said filed in the original bugzilla).
+        (ControllerIOS.prototype.handleStartPlaybackButtonTouchStart): Toggle classes on
+        the hierarchy as needed.
+        (ControllerIOS.prototype.handleStartPlaybackButtonTouchEnd): Ditto.
+        (ControllerIOS.prototype.updateStatusDisplay): Ditto.
+
</ins><span class="cx"> 2015-07-07  Zalan Bujtas  &lt;zalan@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Crash when parent iframe is set to display none and the child frame is mutated the same time.
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediacontrolsmediaControlsiOScss"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.css (186486 => 186487)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.css        2015-07-08 01:53:42 UTC (rev 186486)
+++ trunk/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.css        2015-07-08 02:19:45 UTC (rev 186487)
</span><span class="lines">@@ -190,31 +190,54 @@
</span><span class="cx">     display: none !important;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-video::-webkit-media-controls-start-playback-button,
-audio::-webkit-media-controls-start-playback-button {
</del><ins>+video::-webkit-media-controls-start-playback-button {
</ins><span class="cx">     -webkit-appearance: none;
</span><del>-    display: block;
-    padding: 0;
-    border: 0;
</del><span class="cx">     position: absolute;
</span><span class="cx">     width: 72px;
</span><span class="cx">     height: 72px;
</span><span class="cx">     left: calc(50% - 36px);
</span><span class="cx">     top: calc(50% - 36px);
</span><del>-    background-origin: content-box;
</del><ins>+    -webkit-clip-path: circle(36px);
+    -webkit-transform: translate3d(0, 0, 0);
+}
+
+video::-webkit-media-controls-start-playback-background {
+    -webkit-appearance: none;
+    position: absolute;
+    width: 72px;
+    height: 72px;
+    background-color: rgba(255, 255, 255, 0.2);
+    -webkit-backdrop-filter: blur(10px) saturate(200%);
+}
+
+video::-webkit-media-controls-start-playback-tint {
+    -webkit-appearance: none;
+    position: absolute;
+    width: 72px;
+    height: 72px;
+    background-color: rgb(210, 210, 210);
+    mix-blend-mode: darken;
+}
+
+video::-webkit-media-controls-start-playback-button .webkit-media-controls-start-playback-glyph {
+    -webkit-appearance: none;
+    position: absolute;
+    width: 72px;
+    height: 72px;
+    opacity: 0.45;
+    mix-blend-mode: plus-darker;
+    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIwAAACMCAMAAACZHrEMAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAA/1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD64ociAAAAVHRSTlMAtCT5hQzkWQHAMPuVEetoAs46/qMZ83UG2Uiw94QL4Ve/LZMQZM04oPFz1keuIfaDCVS+KpDqYsmdGO9yBNVEHn9Ru4znj+ZdpstAIIjpagNDtxJhxoj+AAAAAWJLR0QAiAUdSAAAAAlwSFlzAAALEgAACxIB0t1+/AAAAdlJREFUeNrt2udSwkAYhWE09iCCsSv2rogdK2LvYjn3fy3mjwaUkqzZ3W+c817BM8yZDyYhkWCMMcYYY4wxxhhjjMVeS6ttQUVw2tptGwIM0NHZZVsRYIDuHtuMCgzcZK9tSIABUn1p25QAA2T6bVsqMPAGBuVggKHhETkYYHRMEAYYt3iSf2EwkZ2UgwGmpgVhgJlZQRi4c/NyMP5JXkjLwQCLS4Iw8JYNn2Q0bGXV6ElGk9bWBWGA3IYgDPKbW3Iw/kneFoQBdnYFYeDuGTjJYTHA
 fiEtBwMc6D7JUTDwDo/kYIDjk1M5GKB4Jgjjn+SSIAzy55pOsgrGP8kXgjDApY6TrIqBexX/SVbGANeFuB8y/QED3MjB3N6J+WTy2fgfTCpSvPtS7BRVzIOe72+lsej6ZSNjLIoYPWNRw2Qe9VEiYrSNJTpG41giY3JPminhMXrHEgmjeywRMM6zofdjYcZi7DG1jLGEw7yYGUsYjKPhd64qxtxYmmJMjqUJJlV+NW6pgzE9lkYY42Opjym+2aHUwKTKOh8HRcJYGktNjOU/sFSNxep75CqMzbH8wOh43KKKeTfybiAUxvpYAoyAsXxh3OSHbcN3MsbCGGOMMcYYY4wxxv57n0aw2iHhyI0VAAAAAElFTkSuQmCC');
</ins><span class="cx">     background-repeat: no-repeat;
</span><del>-    background-position: center;
-    background-image: url('data:image/svg+xml,&lt;svg viewBox=&quot;0 0 144 144&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;&lt;circle cx=&quot;72&quot; cy=&quot;72&quot; r=&quot;70&quot; fill=&quot;rgba(247, 247, 247, .82)&quot;/&gt;&lt;path d=&quot;M48,36v74L109,74L48,36z&quot; fill=&quot;rgba(129, 129, 129, .9)&quot;/&gt;&lt;/svg&gt;');
</del><ins>+    background-position: 50% 50%;
+    background-size: 100% 100%;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-video::-webkit-media-controls-start-playback-button:active,
-audio::-webkit-media-controls-start-playback-button:active {
-    background-image: url('data:image/svg+xml,&lt;svg viewBox=&quot;0 0 144 144&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;&lt;circle cx=&quot;72&quot; cy=&quot;72&quot; r=&quot;70&quot; fill=&quot;rgba(192, 192, 192, .82)&quot;/&gt;&lt;path d=&quot;M48,36v74L109,74L48,36z&quot; fill=&quot;rgba(96, 96, 96, .9)&quot;/&gt;&lt;/svg&gt;');
</del><ins>+video::-webkit-media-controls-start-playback-button .webkit-media-controls-start-playback-background.active {
+    background-color: rgba(192, 192, 192, 0.2);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-video::-webkit-media-controls-start-playback-button.failed,
-audio::-webkit-media-controls-start-playback-button.failed {
-    background-image: url('data:image/svg+xml,&lt;svg viewBox=&quot;0 0 144 144&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;&gt;&lt;circle cx=&quot;72&quot; cy=&quot;72&quot; r=&quot;70&quot; fill=&quot;rgba(247, 247, 247, .82)&quot;/&gt;&lt;g fill=&quot;rgba(129, 129, 129, .9)&quot;&gt;&lt;rect x=&quot;14&quot; y=&quot;70.4&quot; transform=&quot;matrix(0.8493 0.5279 -0.5279 0.8493 48.8614 -27.1595)&quot; width=&quot;116&quot; height=&quot;3.2&quot;/&gt;&lt;polygon points=&quot;109,74 48,36 48,52.3 95.6,81.9 &quot;/&gt;&lt;polygon points=&quot;48,110 87.7,86.6 48,61.9 &quot;/&gt;&lt;/g&gt;&lt;/svg&gt;');
</del><ins>+video::-webkit-media-controls-start-playback-button .webkit-media-controls-start-playback-glyph.failed {
+    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIwAAACMCAMAAACZHrEMAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAACMVBMVEUAAAAAA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If/jfFJwUvKU0EuxtMJHRsMyicVJsAPIuT1dMupMGm6dVDLHdVpx0hznJ1zc0nWLYJUh1kkJVFHBIoi+GkEi/RXESb6Th6RQTT46pneUj7A93oebWulK8E01bUsuGTLZRmBDWkeIWL0NF93gjgTxKlFtp8n1udQN77b7eo1iTxcQz9UboAYvkh45A4cSMTZVw/j4Wye4Bk68OUzaLLPvHeSR7HxVAjE3nR5FnIBXJZs6ts28WkYCDP4p9YF4kZ5CS5dDDep+9v8G0R4nGmkXAWc7n/o9NimSDzSJSMsoj2Zz7YlHLE6MfsYg/ih0pN1lMWy5f/jCP5MhTE8Vk3ywioSiLZLsj3yEJl5LPuGUoFck1poipy28Q1TyY3GaWCWJyahaBlgFl7j/2LG8xuTaLSOBW0Dee5x5E75+ysscazXeHPJsFQRAEQRAEQRAEQRAEQbLiOSQmbq1EhbJeAAAAAElFTkSuQmCC');
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> /* ================== ALL INLINE BUTTONS ====================== */
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediacontrolsmediaControlsiOSjs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.js (186486 => 186487)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.js        2015-07-08 01:53:42 UTC (rev 186486)
+++ trunk/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.js        2015-07-08 02:19:45 UTC (rev 186487)
</span><span class="lines">@@ -49,10 +49,24 @@
</span><span class="cx">     createBase: function() {
</span><span class="cx">         Controller.prototype.createBase.call(this);
</span><span class="cx"> 
</span><del>-        var startPlaybackButton = this.controls.startPlaybackButton = document.createElement('button');
</del><ins>+        var startPlaybackButton = this.controls.startPlaybackButton = document.createElement('div');
</ins><span class="cx">         startPlaybackButton.setAttribute('pseudo', '-webkit-media-controls-start-playback-button');
</span><span class="cx">         startPlaybackButton.setAttribute('aria-label', this.UIString('Start Playback'));
</span><span class="cx"> 
</span><ins>+        var startPlaybackBackground = document.createElement('div');
+        startPlaybackBackground.setAttribute('pseudo', '-webkit-media-controls-start-playback-background');
+        startPlaybackBackground.classList.add('webkit-media-controls-start-playback-background');
+        startPlaybackButton.appendChild(startPlaybackBackground);
+
+        var startPlaybackTint = document.createElement('div');
+        startPlaybackTint.setAttribute('pseudo', '-webkit-media-controls-start-playback-tint');
+        startPlaybackButton.appendChild(startPlaybackTint);
+
+        var startPlaybackGlyph = document.createElement('div');
+        startPlaybackGlyph.setAttribute('pseudo', '-webkit-media-controls-start-playback-glyph');
+        startPlaybackGlyph.classList.add('webkit-media-controls-start-playback-glyph');
+        startPlaybackButton.appendChild(startPlaybackGlyph);
+
</ins><span class="cx">         this.listenFor(this.base, 'gesturestart', this.handleBaseGestureStart);
</span><span class="cx">         this.listenFor(this.base, 'gesturechange', this.handleBaseGestureChange);
</span><span class="cx">         this.listenFor(this.base, 'gestureend', this.handleBaseGestureEnd);
</span><span class="lines">@@ -456,10 +470,13 @@
</span><span class="cx"> 
</span><span class="cx">     handleStartPlaybackButtonTouchStart: function(event) {
</span><span class="cx">         this.controls.startPlaybackButton.classList.add('active');
</span><ins>+        this.controls.startPlaybackButton.querySelector('.webkit-media-controls-start-playback-background').classList.add('active');
</ins><span class="cx">     },
</span><span class="cx"> 
</span><span class="cx">     handleStartPlaybackButtonTouchEnd: function(event) {
</span><span class="cx">         this.controls.startPlaybackButton.classList.remove('active');
</span><ins>+        this.controls.startPlaybackButton.querySelector('.webkit-media-controls-start-playback-background').classList.remove('active');
+
</ins><span class="cx">         if (this.video.error)
</span><span class="cx">             return true;
</span><span class="cx"> 
</span><span class="lines">@@ -516,6 +533,7 @@
</span><span class="cx">     updateStatusDisplay: function(event)
</span><span class="cx">     {
</span><span class="cx">         this.controls.startPlaybackButton.classList.toggle(this.ClassNames.failed, this.video.error !== null);
</span><ins>+        this.controls.startPlaybackButton.querySelector(&quot;.webkit-media-controls-start-playback-glyph&quot;).classList.toggle(this.ClassNames.failed, this.video.error !== null);
</ins><span class="cx">         Controller.prototype.updateStatusDisplay.call(this, event);
</span><span class="cx">     },
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>