Home
last modified time | relevance | path

Searched refs:stepRange (Results 1 – 11 of 11) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/core/html/forms/
DInputType.cpp295 StepRange stepRange(createStepRange(RejectAny)); in isInRange() local
296 return numericValue >= stepRange.minimum() && numericValue <= stepRange.maximum(); in isInRange()
308 StepRange stepRange(createStepRange(RejectAny)); in isOutOfRange() local
309 return numericValue < stepRange.minimum() || numericValue > stepRange.maximum(); in isOutOfRange()
380 StepRange stepRange(createStepRange(RejectAny)); in validationMessage() local
382 if (numericValue < stepRange.minimum()) in validationMessage()
383 return rangeUnderflowText(stepRange.minimum()); in validationMessage()
385 if (numericValue > stepRange.maximum()) in validationMessage()
386 return rangeOverflowText(stepRange.maximum()); in validationMessage()
388 if (stepRange.stepMismatch(numericValue)) { in validationMessage()
[all …]
DRangeInputType.cpp185 StepRange stepRange(createStepRange(RejectAny)); in handleKeydownEvent() local
190 …ement().fastGetAttribute(stepAttr), "any") ? (stepRange.maximum() - stepRange.minimum()) / 100 : s… in handleKeydownEvent()
191 const Decimal bigStep = std::max((stepRange.maximum() - stepRange.minimum()) / 10, step); in handleKeydownEvent()
213 newValue = isVertical ? stepRange.maximum() : stepRange.minimum(); in handleKeydownEvent()
215 newValue = isVertical ? stepRange.minimum() : stepRange.maximum(); in handleKeydownEvent()
219 newValue = stepRange.clampValue(newValue); in handleKeydownEvent()
297 StepRange stepRange(createStepRange(RejectAny)); in sanitizeValue() local
298 const Decimal proposedNumericValue = parseToNumber(proposedValue, stepRange.defaultValue()); in sanitizeValue()
299 return serializeForNumberType(stepRange.clampValue(proposedNumericValue)); in sanitizeValue()
DStepRange.cpp43 StepRange::StepRange(const StepRange& stepRange) in StepRange() argument
44 : m_maximum(stepRange.m_maximum) in StepRange()
45 , m_minimum(stepRange.m_minimum) in StepRange()
46 , m_step(stepRange.m_step) in StepRange()
47 , m_stepBase(stepRange.m_stepBase) in StepRange()
48 , m_stepDescription(stepRange.m_stepDescription) in StepRange()
49 , m_hasStep(stepRange.m_hasStep) in StepRange()
DBaseMultipleFieldsDateAndTimeInputType.cpp523 setMillisecondToDateComponents(layoutParameters.stepRange.minimum().toDouble(), &date); in updateView()
586 StepRange stepRange = createStepRange(AnyIsDefaultStep); in shouldHaveSecondField() local
588 || !stepRange.minimum().remainder(static_cast<int>(msPerMinute)).isZero() in shouldHaveSecondField()
589 || !stepRange.step().remainder(static_cast<int>(msPerMinute)).isZero(); in shouldHaveSecondField()
/external/chromium_org/third_party/WebKit/Source/core/html/shadow/
DDateTimeEditElement.h70 const StepRange stepRange; member
77 LayoutParameters(Locale& locale, const StepRange& stepRange) in LayoutParameters()
79 , stepRange(stepRange) in LayoutParameters()
DDateTimeEditElement.cpp68 inline const StepRange& stepRange() const { return m_parameters.stepRange; } in stepRange() function in blink::DateTimeEditBuilder
138 || !stepRange().minimum().remainder(static_cast<int>(msPerSecond)).isZero() in needMillisecondField()
139 || !stepRange().step().remainder(static_cast<int>(msPerSecond)).isZero(); in needMillisecondField()
360 …Decimal hourPartOfMinimum = (stepRange().minimum().abs().remainder(decimalMsPerDay) / static_cast<… in shouldHourFieldDisabled()
361 …return hourPartOfMinimum == m_dateValue.hour() && stepRange().step().remainder(decimalMsPerDay).is… in shouldHourFieldDisabled()
370 …return stepRange().minimum().abs().remainder(decimalMsPerSecond) == m_dateValue.millisecond() && s… in shouldMillisecondFieldDisabled()
379 …Decimal minutePartOfMinimum = (stepRange().minimum().abs().remainder(decimalMsPerHour) / static_ca… in shouldMinuteFieldDisabled()
380 …return minutePartOfMinimum == m_dateValue.minute() && stepRange().step().remainder(decimalMsPerHou… in shouldMinuteFieldDisabled()
389 …Decimal secondPartOfMinimum = (stepRange().minimum().abs().remainder(decimalMsPerMinute) / static_… in shouldSecondFieldDisabled()
390 …return secondPartOfMinimum == m_dateValue.second() && stepRange().step().remainder(decimalMsPerMin… in shouldSecondFieldDisabled()
[all …]
DSliderThumbElement.cpp151 StepRange stepRange(input->createStepRange(RejectAny)); in setPositionFromPoint() local
152 Decimal value = stepRange.clampValue(stepRange.valueFromProportion(fraction)); in setPositionFromPoint()
156 double closestFraction = stepRange.proportionFromValue(closest).toDouble(); in setPositionFromPoint()
/external/chromium_org/third_party/WebKit/Source/core/rendering/
DRenderSliderContainer.cpp53 const StepRange stepRange(element->createStepRange(RejectAny)); in sliderPosition() local
54 … const Decimal oldValue = parseToDecimalForNumberType(element->value(), stepRange.defaultValue()); in sliderPosition()
55 return stepRange.proportionFromValue(stepRange.clampValue(oldValue)); in sliderPosition()
/external/fonttools/Lib/fontTools/ttLib/tables/
DE_B_D_T_.py516 stepRange = bitRange + (8,)
517 for curBit in range(*stepRange):
555 stepRange = bitRange + (8,)
556 for curBit, curByte in zip(range(*stepRange), data):
/external/chromium_org/third_party/WebKit/Source/platform/
DDecimalTest.cpp95 DecimalStepRange stepRange(fromString(minimum), fromString(maximum), fromString(step)); in stepDown() local
98 value -= stepRange.step; in stepDown()
99 value = stepRange.clampValue(value); in stepDown()
106 DecimalStepRange stepRange(fromString(minimum), fromString(maximum), fromString(step)); in stepUp() local
109 value += stepRange.step; in stepUp()
110 value = stepRange.clampValue(value); in stepUp()
/external/chromium_org/third_party/WebKit/Source/core/html/
DHTMLInputElement.cpp1738 StepRange stepRange = createStepRange(RejectAny); in setupDateTimeChooserParameters() local
1739 if (stepRange.hasStep()) { in setupDateTimeChooserParameters()
1740 parameters.step = stepRange.step().toDouble(); in setupDateTimeChooserParameters()
1741 parameters.stepBase = stepRange.stepBase().toDouble(); in setupDateTimeChooserParameters()