/external/chromium_org/third_party/WebKit/Source/core/html/forms/ |
D | InputType.cpp | 295 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 …]
|
D | RangeInputType.cpp | 185 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()
|
D | StepRange.cpp | 43 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()
|
D | BaseMultipleFieldsDateAndTimeInputType.cpp | 523 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/ |
D | DateTimeEditElement.h | 70 const StepRange stepRange; member 77 LayoutParameters(Locale& locale, const StepRange& stepRange) in LayoutParameters() 79 , stepRange(stepRange) in LayoutParameters()
|
D | DateTimeEditElement.cpp | 68 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 …]
|
D | SliderThumbElement.cpp | 151 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/ |
D | RenderSliderContainer.cpp | 53 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/ |
D | E_B_D_T_.py | 516 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/ |
D | DecimalTest.cpp | 95 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/ |
D | HTMLInputElement.cpp | 1738 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()
|