Index: Source/core/html/MonthInputType.cpp |
diff --git a/Source/core/html/MonthInputType.cpp b/Source/core/html/MonthInputType.cpp |
index bf4f8b5c98cfda5bce5bcef95b7d32b7a0c5c88e..885f311eaddf3acb7ec59797bec769ad8de1d030 100644 |
--- a/Source/core/html/MonthInputType.cpp |
+++ b/Source/core/html/MonthInputType.cpp |
@@ -128,11 +128,11 @@ Decimal MonthInputType::parseToNumber(const String& src, const Decimal& defaultV |
return Decimal::fromDouble(months); |
} |
-bool MonthInputType::parseToDateComponentsInternal(const UChar* characters, unsigned length, DateComponents* out) const |
+bool MonthInputType::parseToDateComponentsInternal(const String& string, DateComponents* out) const |
{ |
ASSERT(out); |
unsigned end; |
- return out->parseMonth(characters, length, 0, end) && end == length; |
+ return out->parseMonth(string, 0, end) && end == string.length(); |
} |
bool MonthInputType::setMillisecondToDateComponents(double value, DateComponents* date) const |