void SVGAnimationElement::determinePropertyValueTypes(const String& from, const String& to) { SVGElement* targetElement = this->targetElement(); ASSERT(targetElement); const QualifiedName& attributeName = this->attributeName(); if (inheritsFromProperty(targetElement, attributeName, from)) m_fromPropertyValueType = InheritValue; if (inheritsFromProperty(targetElement, attributeName, to)) m_toPropertyValueType = InheritValue; }
void SVGAnimateElement::determinePropertyValueTypes(const String& from, const String& to) { SVGElement* targetElement = this->targetElement(); ASSERT(targetElement); if (inheritsFromProperty(targetElement, attributeName(), from)) m_fromPropertyValueType = InheritValue; if (inheritsFromProperty(targetElement, attributeName(), to)) m_toPropertyValueType = InheritValue; if (m_animatedPropertyType != AnimatedColor) return; if (attributeValueIsCurrentColor(from)) m_fromPropertyValueType = CurrentColorValue; if (attributeValueIsCurrentColor(to)) m_toPropertyValueType = CurrentColorValue; }