Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: Source/core/html/MonthInputType.cpp

Issue 18318002: DateComponents shouldn't use bloatedCharacters (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix build Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/MonthInputType.h ('k') | Source/core/html/TimeInputType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/html/MonthInputType.h ('k') | Source/core/html/TimeInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698