Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Unified Diff: Source/WebCore/html/shadow/MediaControls.cpp

Issue 13454026: Update all float attributes in HTMLMediaElement and related objects to double (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/html/shadow/MediaControls.cpp
diff --git a/Source/WebCore/html/shadow/MediaControls.cpp b/Source/WebCore/html/shadow/MediaControls.cpp
index 36e1780b327e9e53af120b9fc7a1e935e717a178..b0b288428e89472119351cd5a61d260dd82f1468 100644
--- a/Source/WebCore/html/shadow/MediaControls.cpp
+++ b/Source/WebCore/html/shadow/MediaControls.cpp
@@ -92,7 +92,7 @@ void MediaControls::reset()
updateCurrentTimeDisplay();
- float duration = m_mediaController->duration();
+ double duration = m_mediaController->duration();
if (std::isfinite(duration) || page->theme()->hasOwnDisabledStateHandlingFor(MediaSliderPart)) {
m_timeline->setDuration(duration);
m_timeline->setPosition(m_mediaController->currentTime());
@@ -214,7 +214,7 @@ void MediaControls::playbackStopped()
void MediaControls::updateCurrentTimeDisplay()
{
- float now = m_mediaController->currentTime();
+ double now = m_mediaController->currentTime();
Page* page = document()->page();
if (!page)
« no previous file with comments | « Source/WebCore/html/shadow/MediaControlElements.cpp ('k') | Source/WebCore/html/shadow/MediaControlsChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698