Lines Matching refs:percent
37 enum LengthType { Auto, Relative, Percent, Fixed, Intrinsic, MinIntrinsic };
85 float percent() const
87 ASSERT(type() == Percent);
123 case Percent:
137 case Percent:
139 return static_cast<int>(round(maxValue * percent() / 100.0f));
141 return static_cast<int>(static_cast<float>(maxValue * percent() / 100.0f));
153 case Percent:
154 return static_cast<float>(maxValue * percent() / 100.0f);
173 bool isPercent() const { return type() == Percent; }
190 if (resultType == Percent) {
191 float fromPercent = from.isZero() ? 0 : from.percent();
192 float toPercent = isZero() ? 0 : percent();
193 return Length(fromPercent + (toPercent - fromPercent) * progress, Percent);