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

Unified Diff: Source/WebCore/html/shadow/MediaControlsChromium.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
« no previous file with comments | « Source/WebCore/html/shadow/MediaControls.cpp ('k') | Source/WebCore/html/track/TextTrackCue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/html/shadow/MediaControlsChromium.cpp
diff --git a/Source/WebCore/html/shadow/MediaControlsChromium.cpp b/Source/WebCore/html/shadow/MediaControlsChromium.cpp
index 85857e873d22880908f9cc02c90b5cd447e69d79..b8ba9be828f5730d7686f323949ab3290306d955 100644
--- a/Source/WebCore/html/shadow/MediaControlsChromium.cpp
+++ b/Source/WebCore/html/shadow/MediaControlsChromium.cpp
@@ -156,7 +156,7 @@ void MediaControlsChromium::reset()
if (!page)
return;
- float duration = m_mediaController->duration();
+ double duration = m_mediaController->duration();
m_durationDisplay->setInnerText(page->theme()->formatMediaControlsTime(duration), ASSERT_NO_EXCEPTION);
m_durationDisplay->setCurrentValue(duration);
@@ -173,8 +173,8 @@ void MediaControlsChromium::playbackStarted()
void MediaControlsChromium::updateCurrentTimeDisplay()
{
- float now = m_mediaController->currentTime();
- float duration = m_mediaController->duration();
+ double now = m_mediaController->currentTime();
+ double duration = m_mediaController->duration();
Page* page = document()->page();
if (!page)
« no previous file with comments | « Source/WebCore/html/shadow/MediaControls.cpp ('k') | Source/WebCore/html/track/TextTrackCue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698