Lines Matching refs:max
89 double HTMLMeterElement::max() const
91 return std::max(parseToDoubleForNumberType(getAttribute(maxAttr), std::max(1.0, min())), min());
94 void HTMLMeterElement::setMax(double max, ExceptionState& es)
96 if (!std::isfinite(max)) {
100 setAttribute(maxAttr, String::number(max));
106 return std::min(std::max(value, min()), max());
121 return std::min(std::max(low, min()), max());
135 double high = parseToDoubleForNumberType(getAttribute(highAttr), max());
136 return std::min(std::max(high, low()), max());
150 double optimum = parseToDoubleForNumberType(getAttribute(optimumAttr), (max() + min()) / 2);
151 return std::min(std::max(optimum, min()), max());
190 // because the value is never less or greater than min or max.
199 double max = this->max();
202 if (max <= min)
204 return (value - min) / (max - min);