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

Unified Diff: Source/core/html/TimeRanges.h

Issue 559993004: Fix TimeRanges::nearest() to actually calculate nearest time. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Comments. Created 6 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
Index: Source/core/html/TimeRanges.h
diff --git a/Source/core/html/TimeRanges.h b/Source/core/html/TimeRanges.h
index 1a685a7950016b2e12768f0367ad012bb5bf2aa2..3578f42758096ec48d634d7e2cf7bcf223642110 100644
--- a/Source/core/html/TimeRanges.h
+++ b/Source/core/html/TimeRanges.h
@@ -109,7 +109,7 @@ public:
bool contain(double time) const;
- double nearest(double time) const;
+ double nearest(double time, double now) const;
acolwell GONE FROM CHROMIUM 2014/09/11 22:24:39 nit: How about s/time/newPlaybackPosition/ and s/n
DaleCurtis 2014/09/11 22:40:01 I think you must like Java names, but done. :p
void trace(Visitor*);

Powered by Google App Engine
This is Rietveld 408576698