diff options
Diffstat (limited to 'WebCore/html/MonthInputType.cpp')
-rw-r--r-- | WebCore/html/MonthInputType.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/WebCore/html/MonthInputType.cpp b/WebCore/html/MonthInputType.cpp index 38f9d00..cbde5cb 100644 --- a/WebCore/html/MonthInputType.cpp +++ b/WebCore/html/MonthInputType.cpp @@ -34,8 +34,6 @@ #include "DateComponents.h" #include "HTMLInputElement.h" #include "HTMLNames.h" -#include <wtf/CurrentTime.h> -#include <wtf/DateMath.h> #include <wtf/MathExtras.h> #include <wtf/PassOwnPtr.h> @@ -76,21 +74,6 @@ void MonthInputType::setValueAsDate(double value, ExceptionCode&) const element()->setValue(date.toString()); } -double MonthInputType::defaultValueForStepUp() const -{ - double current = currentTimeMS(); - double utcOffset = calculateUTCOffset(); - double dstOffset = calculateDSTOffset(current, utcOffset); - int offset = static_cast<int>((utcOffset + dstOffset) / msPerMinute); - current += offset * msPerMinute; - - DateComponents date; - date.setMillisecondsSinceEpochForMonth(current); - double months = date.monthsSinceEpoch(); - ASSERT(isfinite(months)); - return months; -} - double MonthInputType::minimum() const { return parseToDouble(element()->fastGetAttribute(minAttr), DateComponents::minimumMonth()); |