Title: [180647] trunk/Source/WebCore
Revision
180647
Author
d...@apple.com
Date
2015-02-25 16:05:50 -0800 (Wed, 25 Feb 2015)

Log Message

[iOS Media] incorrect front padding on time values
https://bugs.webkit.org/show_bug.cgi?id=142027
<rdar://problem/19960790>

Reviewed by Brent Fulgham.

We don't want to prefix times with a "0".

* Modules/mediacontrols/mediaControlsApple.js:
(Controller.prototype.formatTime):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (180646 => 180647)


--- trunk/Source/WebCore/ChangeLog	2015-02-25 23:49:08 UTC (rev 180646)
+++ trunk/Source/WebCore/ChangeLog	2015-02-26 00:05:50 UTC (rev 180647)
@@ -1,3 +1,16 @@
+2015-02-25  Dean Jackson  <d...@apple.com>
+
+        [iOS Media] incorrect front padding on time values
+        https://bugs.webkit.org/show_bug.cgi?id=142027
+        <rdar://problem/19960790>
+
+        Reviewed by Brent Fulgham.
+
+        We don't want to prefix times with a "0".
+
+        * Modules/mediacontrols/mediaControlsApple.js:
+        (Controller.prototype.formatTime):
+
 2015-02-25  Chris Dumez  <cdu...@apple.com>
 
         Make PublicURLManager suspendable

Modified: trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.js (180646 => 180647)


--- trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.js	2015-02-25 23:49:08 UTC (rev 180646)
+++ trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.js	2015-02-26 00:05:50 UTC (rev 180647)
@@ -1009,7 +1009,7 @@
         if (intHours > 0)
             return sign + intHours + ':' + String('00' + intMinutes).slice(-2) + ":" + String('00' + intSeconds).slice(-2);
 
-        return sign + String('00' + intMinutes).slice(-2) + ":" + String('00' + intSeconds).slice(-2)
+        return (time < 0 ? '-' : String()) + String('00' + intMinutes).slice(-2) + ":" + String('00' + intSeconds).slice(-2)
     },
 
     updatePlaying: function()
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to