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