| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2011-2012. All rights reserved. |
| 3 * Copyright (C) 2013 Samsung Electronics. All rights reserved. | 3 * Copyright (C) 2013 Samsung Electronics. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 m_type = AnimatedUnknown; | 63 m_type = AnimatedUnknown; |
| 64 | 64 |
| 65 DCHECK(m_type != AnimatedPoint && m_type != AnimatedStringList && | 65 DCHECK(m_type != AnimatedPoint && m_type != AnimatedStringList && |
| 66 m_type != AnimatedTransform); | 66 m_type != AnimatedTransform); |
| 67 } | 67 } |
| 68 | 68 |
| 69 SVGPropertyBase* SVGAnimatedTypeAnimator::createPropertyForAttributeAnimation( | 69 SVGPropertyBase* SVGAnimatedTypeAnimator::createPropertyForAttributeAnimation( |
| 70 const String& value) const { | 70 const String& value) const { |
| 71 // SVG DOM animVal animation code-path. | 71 // SVG DOM animVal animation code-path. |
| 72 if (m_type == AnimatedTransformList) { | 72 if (m_type == AnimatedTransformList) { |
| 73 // TransformList must be animated via <animateTransform>, | 73 // TransformList must be animated via <animateTransform>, and its |
| 74 // and its {from,by,to} attribute values needs to be parsed w.r.t. its "type
" attribute. | 74 // {from,by,to} attribute values needs to be parsed w.r.t. its "type" |
| 75 // Spec: http://www.w3.org/TR/SVG/single-page.html#animate-AnimateTransformE
lement | 75 // attribute. Spec: |
| 76 // http://www.w3.org/TR/SVG/single-page.html#animate-AnimateTransformElement |
| 76 DCHECK(m_animationElement); | 77 DCHECK(m_animationElement); |
| 77 SVGTransformType transformType = | 78 SVGTransformType transformType = |
| 78 toSVGAnimateTransformElement(m_animationElement)->transformType(); | 79 toSVGAnimateTransformElement(m_animationElement)->transformType(); |
| 79 return SVGTransformList::create(transformType, value); | 80 return SVGTransformList::create(transformType, value); |
| 80 } | 81 } |
| 81 DCHECK(m_animatedProperty); | 82 DCHECK(m_animatedProperty); |
| 82 return m_animatedProperty->currentValueBase()->cloneForAnimation(value); | 83 return m_animatedProperty->currentValueBase()->cloneForAnimation(value); |
| 83 } | 84 } |
| 84 | 85 |
| 85 SVGPropertyBase* SVGAnimatedTypeAnimator::createPropertyForCSSAnimation( | 86 SVGPropertyBase* SVGAnimatedTypeAnimator::createPropertyForCSSAnimation( |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 return animatedValue; | 152 return animatedValue; |
| 152 } | 153 } |
| 153 | 154 |
| 154 DEFINE_TRACE(SVGAnimatedTypeAnimator) { | 155 DEFINE_TRACE(SVGAnimatedTypeAnimator) { |
| 155 visitor->trace(m_animationElement); | 156 visitor->trace(m_animationElement); |
| 156 visitor->trace(m_contextElement); | 157 visitor->trace(m_contextElement); |
| 157 visitor->trace(m_animatedProperty); | 158 visitor->trace(m_animatedProperty); |
| 158 } | 159 } |
| 159 | 160 |
| 160 } // namespace blink | 161 } // namespace blink |
| OLD | NEW |