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

Unified Diff: Source/core/html/DateTimeLocalInputType.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/DateTimeLocalInputType.h ('k') | Source/core/html/MonthInputType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/DateTimeLocalInputType.cpp
diff --git a/Source/core/html/DateTimeLocalInputType.cpp b/Source/core/html/DateTimeLocalInputType.cpp
index 6ca3d549c8ae8c8686c043e3bc079ea8c48cb9f3..5edd420f1eab3d43aefef97d8b4df3d1f92e1d65 100644
--- a/Source/core/html/DateTimeLocalInputType.cpp
+++ b/Source/core/html/DateTimeLocalInputType.cpp
@@ -95,11 +95,11 @@ StepRange DateTimeLocalInputType::createStepRange(AnyStepHandling anyStepHandlin
return StepRange(stepBase, minimum, maximum, step, stepDescription);
}
-bool DateTimeLocalInputType::parseToDateComponentsInternal(const UChar* characters, unsigned length, DateComponents* out) const
+bool DateTimeLocalInputType::parseToDateComponentsInternal(const String& string, DateComponents* out) const
{
ASSERT(out);
unsigned end;
- return out->parseDateTimeLocal(characters, length, 0, end) && end == length;
+ return out->parseDateTimeLocal(string, 0, end) && end == string.length();
}
bool DateTimeLocalInputType::setMillisecondToDateComponents(double value, DateComponents* date) const
« no previous file with comments | « Source/core/html/DateTimeLocalInputType.h ('k') | Source/core/html/MonthInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698