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

Unified Diff: Source/core/html/DateInputType.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/DateInputType.h ('k') | Source/core/html/DateTimeLocalInputType.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/html/DateInputType.h ('k') | Source/core/html/DateTimeLocalInputType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698