Lines Matching defs:Percent
35 enum LengthType { Auto, Relative, Percent, Fixed, Static, Intrinsic, MinIntrinsic };
51 ASSERT(t != Percent);
57 ASSERT(t == Percent);
64 ASSERT(type() != Percent);
70 double percent() const
72 ASSERT(type() == Percent);
81 ASSERT(t != Percent);
89 ASSERT(!value || type() != Percent);
97 ASSERT(t == Percent);
103 ASSERT(type() == Percent);
113 case Percent:
115 return static_cast<int>(round(maxValue * percent() / 100.0));
129 case Percent:
131 return static_cast<int>(round(maxValue * percent() / 100.0));
144 case Percent:
145 return static_cast<float>(maxValue * percent() / 100.0);
160 bool isPercent() const { return type() == Percent; }
178 if (resultType == Percent) {
179 double fromPercent = from.isZero() ? 0. : from.percent();
180 double toPercent = isZero() ? 0. : percent();
181 return Length(fromPercent + (toPercent - fromPercent) * progress, Percent);