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

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

Powered by Google App Engine
This is Rietveld 408576698