|
1 | 1 | /*
|
2 |
| - * Copyright (C) 2010 Google Inc. All rights reserved. |
3 |
| - * Copyright (C) 2011-2018 Apple Inc. All rights reserved. |
| 2 | + * Copyright (C) 2010-2014 Google Inc. All rights reserved. |
| 3 | + * Copyright (C) 2011-2023 Apple Inc. All rights reserved. |
4 | 4 | *
|
5 | 5 | * Redistribution and use in source and binary forms, with or without
|
6 | 6 | * modification, are permitted provided that the following conditions are
|
@@ -121,12 +121,6 @@ StepRange RangeInputType::createStepRange(AnyStepHandling anyStepHandling) const
|
121 | 121 | const Decimal minimum = parseToNumber(element()->attributeWithoutSynchronization(minAttr), rangeDefaultMinimum);
|
122 | 122 | const Decimal maximum = ensureMaximum(parseToNumber(element()->attributeWithoutSynchronization(maxAttr), rangeDefaultMaximum), minimum);
|
123 | 123 |
|
124 |
| - const AtomString& precisionValue = element()->attributeWithoutSynchronization(precisionAttr); |
125 |
| - if (!precisionValue.isNull()) { |
126 |
| - const Decimal step = equalLettersIgnoringASCIICase(precisionValue, "float"_s) ? Decimal::nan() : 1; |
127 |
| - return StepRange(minimum, RangeLimitations::Valid, minimum, maximum, step, rangeStepDescription); |
128 |
| - } |
129 |
| - |
130 | 124 | const Decimal step = StepRange::parseStep(anyStepHandling, rangeStepDescription, element()->attributeWithoutSynchronization(stepAttr));
|
131 | 125 | return StepRange(minimum, RangeLimitations::Valid, minimum, maximum, step, rangeStepDescription);
|
132 | 126 | }
|
@@ -335,7 +329,6 @@ bool RangeInputType::accessKeyAction(bool sendMouseEvents)
|
335 | 329 |
|
336 | 330 | void RangeInputType::attributeChanged(const QualifiedName& name)
|
337 | 331 | {
|
338 |
| - // FIXME: Don't we need to do this work for precisionAttr too? |
339 | 332 | if (name == maxAttr || name == minAttr || name == valueAttr) {
|
340 | 333 | // Sanitize the value.
|
341 | 334 | if (auto* element = this->element()) {
|
|
0 commit comments