Bug 1283023 - Implement the step attribute for <input type=month>. r=smaug

This commit is contained in:
Jessica Jong
2016-08-03 02:54:00 +02:00
parent 0c03a40fcc
commit a9e4428dd7
6 changed files with 255 additions and 17 deletions

View File

@@ -1023,11 +1023,7 @@ protected:
/**
* Returns if the step attribute apply for the current type.
*/
bool DoesStepApply() const
{
// TODO: this is temporary until bug 888324 is fixed.
return DoesMinMaxApply() && mType != NS_FORM_INPUT_MONTH;
}
bool DoesStepApply() const { return DoesMinMaxApply(); }
/**
* Returns if stepDown and stepUp methods apply for the current type.
@@ -1428,6 +1424,7 @@ protected:
static const Decimal kStepScaleFactorDate;
static const Decimal kStepScaleFactorNumberRange;
static const Decimal kStepScaleFactorTime;
static const Decimal kStepScaleFactorMonth;
// Default step base value when a type do not have specific one.
static const Decimal kDefaultStepBase;