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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTheme.cpp

Issue 1369763002: Fix media element time display for times over an hour. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: iterators ftw. Created 5 years, 3 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 | « no previous file | third_party/WebKit/Source/core/layout/LayoutThemeTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutTheme.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTheme.cpp b/third_party/WebKit/Source/core/layout/LayoutTheme.cpp
index 490b941c264082420394fc4713101c2b07582ffe..f54de70938c9bb50f64aaffa4780d15cb58c4133 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTheme.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTheme.cpp
@@ -233,6 +233,7 @@ static String formatChromiumMediaControlsTime(float time, float duration, bool i
duration = 0;
int seconds = static_cast<int>(fabsf(time));
int minutes = seconds / 60;
+ int hours = seconds / (60 * 60);
seconds %= 60;
@@ -241,7 +242,6 @@ static String formatChromiumMediaControlsTime(float time, float duration, bool i
int durationMins = durationSecs / 60;
if (!RuntimeEnabledFeatures::newMediaPlaybackUiEnabled()) {
- int hours = seconds / (60 * 60);
int durationHours = durationSecs / (60 * 60);
durationMins %= 60;
minutes %= 60;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutThemeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698