DescriptionFix TimeRanges::nearest() to actually calculate nearest time.
The existing implementation instead couldn't decide if it wanted to
calculate the nearest time or how close a given time was to a range.
The new implementation follows the HTML spec for TimeRanges where
nearest() returns a time within the range closest to the desired
time. Equidistant matches are resolved by distance from the current
time.
BUG=412562
TEST=new unittest.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181859
Patch Set 1 #
Total comments: 2
Patch Set 2 : Comments. #
Total comments: 4
Patch Set 3 : Comments. #
Messages
Total messages: 9 (2 generated)
|