| Index: Source/core/svg/SVGAnimatedTypeAnimator.cpp
|
| diff --git a/Source/core/svg/SVGAnimatedTypeAnimator.cpp b/Source/core/svg/SVGAnimatedTypeAnimator.cpp
|
| index ecc6f61404ac233e7f96a0a4281077e8fd898619..4ad33e8d22a917b4b06c5873729ab3ec9478561a 100644
|
| --- a/Source/core/svg/SVGAnimatedTypeAnimator.cpp
|
| +++ b/Source/core/svg/SVGAnimatedTypeAnimator.cpp
|
| @@ -36,22 +36,21 @@
|
|
|
| namespace WebCore {
|
|
|
| -SVGAnimatedTypeAnimator::SVGAnimatedTypeAnimator(AnimatedPropertyType type, SVGAnimationElement* animationElement, SVGElement* contextElement)
|
| - : m_type(type)
|
| - , m_animationElement(animationElement)
|
| +SVGAnimatedTypeAnimator::SVGAnimatedTypeAnimator(SVGAnimationElement* animationElement, SVGElement* contextElement)
|
| + : m_animationElement(animationElement)
|
| , m_contextElement(contextElement)
|
| {
|
| ASSERT(m_animationElement);
|
| ASSERT(m_contextElement);
|
| - ASSERT(m_type != AnimatedPoint
|
| - && m_type != AnimatedStringList
|
| - && m_type != AnimatedTransform
|
| - && m_type != AnimatedUnknown);
|
|
|
| const QualifiedName& attributeName = m_animationElement->attributeName();
|
| m_animatedProperty = m_contextElement->propertyFromAttribute(attributeName);
|
| - if (m_animatedProperty)
|
| - ASSERT(m_animatedProperty->type() == m_type);
|
| + m_type = m_animatedProperty ? m_animatedProperty->type()
|
| + : SVGElement::animatedPropertyTypeForCSSAttribute(attributeName);
|
| +
|
| + ASSERT(m_type != AnimatedPoint
|
| + && m_type != AnimatedStringList
|
| + && m_type != AnimatedTransform);
|
| }
|
|
|
| SVGAnimatedTypeAnimator::~SVGAnimatedTypeAnimator()
|
| @@ -106,27 +105,24 @@ PassRefPtr<SVGPropertyBase> SVGAnimatedTypeAnimator::createPropertyForAnimation(
|
| return property.release();
|
| }
|
|
|
| - // These types don't appear in the table in SVGElement::cssPropertyToTypeMap() and thus don't need support.
|
| + // These types don't appear in the table in SVGElement::animatedPropertyTypeForCSSAttribute() and thus don't need support.
|
| + case AnimatedAngle:
|
| case AnimatedBoolean:
|
| + case AnimatedEnumeration:
|
| + case AnimatedInteger:
|
| + case AnimatedIntegerOptionalInteger:
|
| case AnimatedNumberList:
|
| case AnimatedNumberOptionalNumber:
|
| + case AnimatedPath:
|
| case AnimatedPoint:
|
| case AnimatedPoints:
|
| + case AnimatedPreserveAspectRatio:
|
| case AnimatedRect:
|
| + case AnimatedStringList:
|
| case AnimatedTransform:
|
| case AnimatedTransformList:
|
| ASSERT_NOT_REACHED();
|
|
|
| - // These properties are not yet migrated to NewProperty implementation. see http://crbug.com/308818
|
| - case AnimatedAngle:
|
| - case AnimatedEnumeration:
|
| - case AnimatedInteger:
|
| - case AnimatedIntegerOptionalInteger:
|
| - case AnimatedPath:
|
| - case AnimatedPreserveAspectRatio:
|
| - case AnimatedStringList:
|
| - ASSERT_NOT_REACHED();
|
| -
|
| case AnimatedUnknown:
|
| ASSERT_NOT_REACHED();
|
| };
|
|
|