Chromium Code Reviews| Index: third_party/WebKit/Source/core/html/track/vtt/VTTParser.cpp |
| diff --git a/third_party/WebKit/Source/core/html/track/vtt/VTTParser.cpp b/third_party/WebKit/Source/core/html/track/vtt/VTTParser.cpp |
| index f3e4542db09ffa2ee484574b68cda004d3e22ca4..331ec9972c54116b5ca3a66cd348d83ebc30e069 100644 |
| --- a/third_party/WebKit/Source/core/html/track/vtt/VTTParser.cpp |
| +++ b/third_party/WebKit/Source/core/html/track/vtt/VTTParser.cpp |
| @@ -45,9 +45,6 @@ namespace blink { |
| using namespace HTMLNames; |
| -const double secondsPerHour = 3600; |
| -const double secondsPerMinute = 60; |
| -const double secondsPerMillisecond = 0.001; |
| const unsigned fileIdentifierLength = 6; |
| bool VTTParser::parseFloatPercentageValue(VTTScanner& valueScanner, |
| @@ -442,6 +439,9 @@ bool VTTParser::collectTimeStamp(VTTScanner& input, double& timeStamp) { |
| return false; |
| // Steps 18 - 19 - Calculate result. |
| + const int secondsPerHour = 3600; |
|
fs
2017/03/02 18:30:53
This was double for a reason =)
Daniel Bratell
2017/03/02 19:53:16
Seems that way. Are people using millions of hours
|
| + const int secondsPerMinute = 60; |
| + const double secondsPerMillisecond = 0.001; |
| timeStamp = (value1 * secondsPerHour) + (value2 * secondsPerMinute) + value3 + |
| (value4 * secondsPerMillisecond); |
| return true; |