Modified: trunk/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.css (181898 => 181899)
--- trunk/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.css 2015-03-24 19:13:06 UTC (rev 181898)
+++ trunk/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.css 2015-03-24 19:53:17 UTC (rev 181899)
@@ -361,6 +361,7 @@
border-radius: 0 !important;
box-sizing: content-box !important;
-webkit-transform: translate3d(0, 0, 0);
+ mix-blend-mode: plus-darker;
}
audio::-webkit-media-controls-timeline::-webkit-slider-runnable-track,
Modified: trunk/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.js (181898 => 181899)
--- trunk/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.js 2015-03-24 19:13:06 UTC (rev 181898)
+++ trunk/Source/WebCore/Modules/mediacontrols/mediaControlsiOS.js 2015-03-24 19:53:17 UTC (rev 181899)
@@ -247,31 +247,31 @@
var midY = height / 2;
- // 1. Draw the outline with a clip path that subtracts the
- // middle of a lozenge. This produces a better result than
- // stroking when we come to filling the parts below.
+ // 1. Draw the buffered part and played parts, using
+ // solid rectangles that are clipped to the outside of
+ // the lozenge.
ctx.save();
ctx.beginPath();
this.addRoundedRect(ctx, 1, midY - 3, width - 2, 6, 3);
- this.addRoundedRect(ctx, 2, midY - 2, width - 4, 4, 2);
ctx.closePath();
- ctx.clip("evenodd");
- ctx.fillStyle = "black";
- ctx.fillRect(0, 0, width, height);
+ ctx.clip();
+ ctx.fillStyle = "white";
+ ctx.fillRect(0, 0, Math.round(width * played) + 2, height);
+ ctx.fillStyle = "rgba(0, 0, 0, 0.55)";
+ ctx.fillRect(Math.round(width * played) + 2, 0, Math.round(width * (buffered - played)) + 2, height);
ctx.restore();
- // 2. Draw the buffered part and played parts, using
- // solid rectangles that are clipped to the outside of
- // the lozenge.
+ // 2. Draw the outline with a clip path that subtracts the
+ // middle of a lozenge. This produces a better result than
+ // stroking.
ctx.save();
ctx.beginPath();
this.addRoundedRect(ctx, 1, midY - 3, width - 2, 6, 3);
+ this.addRoundedRect(ctx, 2, midY - 2, width - 4, 4, 2);
ctx.closePath();
- ctx.clip();
- ctx.fillStyle = "black";
- ctx.fillRect(0, 0, Math.round(width * buffered) + 2, height);
- ctx.fillStyle = "white";
- ctx.fillRect(0, 0, Math.round(width * played) + 2, height);
+ ctx.clip("evenodd");
+ ctx.fillStyle = "rgba(0, 0, 0, 0.55)";
+ ctx.fillRect(Math.round(width * buffered) + 2, 0, width, height);
ctx.restore();
},