Home | History | Annotate | Download | only in svg

Lines Matching refs:percent

423 unsigned SVGAnimationElement::calculateKeyTimesIndex(float percent) const
428 // required to be 1, and percent can never exceed 1; i.e., the second last
431 if (m_keyTimes[index] > percent)
437 float SVGAnimationElement::calculatePercentForSpline(float percent, unsigned splineIndex) const
445 return narrowPrecisionToFloat(bezier.solve(percent, solveEpsilon(duration.value())));
448 float SVGAnimationElement::calculatePercentFromKeyPoints(float percent) const
455 if (percent == 1)
458 unsigned index = calculateKeyTimesIndex(percent);
467 float keyPointPercent = (percent - fromPercent) / (toPercent - fromPercent);
476 float SVGAnimationElement::calculatePercentForFromTo(float percent) const
479 return percent > m_keyTimes[1] ? 1 : 0;
481 return percent;
484 void SVGAnimationElement::currentValuesFromKeyPoints(float percent, float& effectivePercent, String& from, String& to) const
489 effectivePercent = calculatePercentFromKeyPoints(percent);
495 void SVGAnimationElement::currentValuesForValuesAnimation(float percent
501 if (percent == 1 || valuesCount == 1) {
520 return currentValuesFromKeyPoints(percent, effectivePercent, from, to);
526 unsigned index = calculateKeyTimesIndex(percent);
529 index = static_cast<unsigned>(percent * valuesCount);
542 index = static_cast<unsigned>(floorf(percent * (valuesCount - 1)));
552 effectivePercent = (percent - fromPercent) / (toPercent - fromPercent);
611 void SVGAnimationElement::updateAnimation(float percent, unsigned repeatCount, SVGSMILElement* resultElement)
622 currentValuesForValuesAnimation(percent, effectivePercent, from, to);
631 effectivePercent = calculatePercentFromKeyPoints(percent);
633 effectivePercent = calculatePercentForSpline(percent, calculateKeyTimesIndex(percent));
635 effectivePercent = calculatePercentForFromTo(percent);
637 effectivePercent = percent;