Index: Source/core/html/track/vtt/VTTCue.cpp |
diff --git a/Source/core/html/track/vtt/VTTCue.cpp b/Source/core/html/track/vtt/VTTCue.cpp |
index 8c515ec14dfedc7b0e9b51e1af3988a28042c272..df8cdf4c01ba630fb5cebaf02b63ee3431a89bd3 100644 |
--- a/Source/core/html/track/vtt/VTTCue.cpp |
+++ b/Source/core/html/track/vtt/VTTCue.cpp |
@@ -115,12 +115,10 @@ static const String& verticalGrowingRightKeyword() |
return verticallr; |
} |
-static bool isInvalidPercentage(double value, ExceptionState& exceptionState) |
+static bool isInvalidPercentage(int value, ExceptionState& exceptionState) |
Nils Barth (inactive)
2014/05/01 07:42:33
This is only used for two ints, not doubles, and i
|
{ |
- if (TextTrackCue::isInfiniteOrNonNumber(value, exceptionState)) |
- return true; |
if (value < 0 || value > 100) { |
- exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::indexOutsideRange("value", value, 0.0, ExceptionMessages::InclusiveBound, 100.0, ExceptionMessages::InclusiveBound)); |
+ exceptionState.throwDOMException(IndexSizeError, ExceptionMessages::indexOutsideRange("value", value, 0, ExceptionMessages::InclusiveBound, 100, ExceptionMessages::InclusiveBound)); |
return true; |
} |
return false; |