Index: Source/core/html/TimeInputType.cpp |
diff --git a/Source/core/html/TimeInputType.cpp b/Source/core/html/TimeInputType.cpp |
index bc0d6ea54316abc933ab5cd4cc6423883efc5261..c20d43175aaa90798b83f8c99048a113c0e52e4e 100644 |
--- a/Source/core/html/TimeInputType.cpp |
+++ b/Source/core/html/TimeInputType.cpp |
@@ -105,11 +105,11 @@ StepRange TimeInputType::createStepRange(AnyStepHandling anyStepHandling) const |
return StepRange(stepBase, minimum, maximum, step, stepDescription); |
} |
-bool TimeInputType::parseToDateComponentsInternal(const UChar* characters, unsigned length, DateComponents* out) const |
+bool TimeInputType::parseToDateComponentsInternal(const String& string, DateComponents* out) const |
{ |
ASSERT(out); |
unsigned end; |
- return out->parseTime(characters, length, 0, end) && end == length; |
+ return out->parseTime(string, 0, end) && end == string.length(); |
} |
bool TimeInputType::setMillisecondToDateComponents(double value, DateComponents* date) const |