Index: Source/core/html/forms/DateTimeLocalInputType.cpp |
diff --git a/Source/core/html/forms/DateTimeLocalInputType.cpp b/Source/core/html/forms/DateTimeLocalInputType.cpp |
index c86174e8d8945175a7ca9571c8c37241fa5764c6..995968cb5b5a76d5e110b25ce6b36d7035191e2f 100644 |
--- a/Source/core/html/forms/DateTimeLocalInputType.cpp |
+++ b/Source/core/html/forms/DateTimeLocalInputType.cpp |
@@ -50,7 +50,7 @@ static const int dateTimeLocalDefaultStep = 60; |
static const int dateTimeLocalDefaultStepBase = 0; |
static const int dateTimeLocalStepScaleFactor = 1000; |
-PassRefPtr<InputType> DateTimeLocalInputType::create(HTMLInputElement* element) |
+PassRefPtr<InputType> DateTimeLocalInputType::create(HTMLInputElement& element) |
{ |
return adoptRef(new DateTimeLocalInputType(element)); |
} |
@@ -86,10 +86,10 @@ StepRange DateTimeLocalInputType::createStepRange(AnyStepHandling anyStepHandlin |
{ |
DEFINE_STATIC_LOCAL(const StepRange::StepDescription, stepDescription, (dateTimeLocalDefaultStep, dateTimeLocalDefaultStepBase, dateTimeLocalStepScaleFactor, StepRange::ScaledStepValueShouldBeInteger)); |
- const Decimal stepBase = parseToNumber(element()->fastGetAttribute(minAttr), 0); |
- const Decimal minimum = parseToNumber(element()->fastGetAttribute(minAttr), Decimal::fromDouble(DateComponents::minimumDateTime())); |
- const Decimal maximum = parseToNumber(element()->fastGetAttribute(maxAttr), Decimal::fromDouble(DateComponents::maximumDateTime())); |
- const Decimal step = StepRange::parseStep(anyStepHandling, stepDescription, element()->fastGetAttribute(stepAttr)); |
+ const Decimal stepBase = parseToNumber(element().fastGetAttribute(minAttr), 0); |
+ const Decimal minimum = parseToNumber(element().fastGetAttribute(minAttr), Decimal::fromDouble(DateComponents::minimumDateTime())); |
+ const Decimal maximum = parseToNumber(element().fastGetAttribute(maxAttr), Decimal::fromDouble(DateComponents::maximumDateTime())); |
+ const Decimal step = StepRange::parseStep(anyStepHandling, stepDescription, element().fastGetAttribute(stepAttr)); |
return StepRange(stepBase, minimum, maximum, step, stepDescription); |
} |
@@ -158,9 +158,9 @@ void DateTimeLocalInputType::setupLayoutParameters(DateTimeEditElement::LayoutPa |
layoutParameters.dateTimeFormat = layoutParameters.locale.dateTimeFormatWithoutSeconds(); |
layoutParameters.fallbackDateTimeFormat = "yyyy-MM-dd'T'HH:mm"; |
} |
- if (!parseToDateComponents(element()->fastGetAttribute(minAttr), &layoutParameters.minimum)) |
+ if (!parseToDateComponents(element().fastGetAttribute(minAttr), &layoutParameters.minimum)) |
layoutParameters.minimum = DateComponents(); |
- if (!parseToDateComponents(element()->fastGetAttribute(maxAttr), &layoutParameters.maximum)) |
+ if (!parseToDateComponents(element().fastGetAttribute(maxAttr), &layoutParameters.maximum)) |
layoutParameters.maximum = DateComponents(); |
layoutParameters.placeholderForDay = locale().queryString(WebLocalizedString::PlaceholderForDayOfMonthField); |
layoutParameters.placeholderForMonth = locale().queryString(WebLocalizedString::PlaceholderForMonthField); |