Home | History | Annotate | Download | only in svg

Lines Matching refs:percent

381 unsigned SVGAnimationElement::calculateKeyTimesIndex(float percent) const
386 if (m_keyTimes[index] >= percent)
392 float SVGAnimationElement::calculatePercentForSpline(float percent, unsigned splineIndex) const
400 return narrowPrecisionToFloat(bezier.solve(percent, solveEpsilon(duration.value())));
403 float SVGAnimationElement::calculatePercentFromKeyPoints(float percent) const
410 unsigned index = calculateKeyTimesIndex(percent);
417 return percent == 1 ? toKeyPoint : fromKeyPoint;
419 float keyPointPercent = percent == 1 ? 1 : (percent - fromPercent) / (toPercent - fromPercent);
428 void SVGAnimationElement::currentValuesFromKeyPoints(float percent, float& effectivePercent, String& from, String& to) const
433 effectivePercent = calculatePercentFromKeyPoints(percent);
439 void SVGAnimationElement::currentValuesForValuesAnimation(float percent, float& effectivePercent, String& from, String& to) const
447 return currentValuesFromKeyPoints(percent, effectivePercent, from, to);
453 unsigned index = calculateKeyTimesIndex(percent);
456 index = percent == 1 ? valuesCount - 1 : static_cast<unsigned>(percent * valuesCount);
469 index = static_cast<unsigned>(percent * (valuesCount - 1));
479 effectivePercent = percent == 1 ? 1 : (percent - fromPercent) / (toPercent - fromPercent);
534 void SVGAnimationElement::updateAnimation(float percent, unsigned repeat, SVGSMILElement* resultElement)
544 currentValuesForValuesAnimation(percent, effectivePercent, from, to);
553 effectivePercent = calculatePercentFromKeyPoints(percent);
555 effectivePercent = calculatePercentForSpline(percent, calculateKeyTimesIndex(percent));
557 effectivePercent = percent;