void SVGAnimateColorElement::applyAnimatedValueToElement() { if (isAdditive()) setTargetAttributeAnimatedValue(ColorDistance::addColorsAndClamp(m_baseColor, m_animatedColor).name()); else setTargetAttributeAnimatedValue(m_animatedColor.name()); }
void SVGAnimateElement::applyResultsToTarget() { ASSERT(m_animatedPropertyType != AnimatedEnumeration); ASSERT(m_animatedPropertyType != AnimatedTransformList || hasTagName(SVGNames::animateTransformTag)); ASSERT(m_animatedPropertyType != AnimatedUnknown); ASSERT(m_animatedType); ASSERT(m_animator); if (m_animatedProperties.isEmpty()) { // CSS / legacy XML change code-path. setTargetAttributeAnimatedValue(m_animatedType.get()); return; } // SVG DOM animVal animation code-path. m_animator->animValDidChange(m_animatedProperties); }