| Index: third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp b/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
|
| index a60048a5c749f7070102f0308959f87ef0844e47..00344eb7e8067d9b4b2a7543a7234cb51cd85031 100644
|
| --- a/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
|
| +++ b/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
|
| @@ -709,8 +709,16 @@ void MediaControls::onTimeUpdate() {
|
| }
|
|
|
| void MediaControls::onDurationChange() {
|
| - m_timeline->setDuration(mediaElement().duration());
|
| + const double duration = mediaElement().duration();
|
| +
|
| + // Update the displayed current time/duration.
|
| + m_durationDisplay->setTextContent(
|
| + LayoutTheme::theme().formatMediaControlsTime(duration));
|
| + m_durationDisplay->setCurrentValue(duration);
|
| updateCurrentTimeDisplay();
|
| +
|
| + // Update the timeline (the UI with the seek marker).
|
| + m_timeline->setDuration(duration);
|
| }
|
|
|
| void MediaControls::onPlay() {
|
|
|