| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 5 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 5 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 ASSERT(percentage >= 0 && percentage <= 1); | 105 ASSERT(percentage >= 0 && percentage <= 1); |
| 106 ASSERT(m_animatedPropertyType != AnimatedTransformList || hasTagName(SVGName
s::animateTransformTag)); | 106 ASSERT(m_animatedPropertyType != AnimatedTransformList || hasTagName(SVGName
s::animateTransformTag)); |
| 107 ASSERT(m_animatedPropertyType != AnimatedUnknown); | 107 ASSERT(m_animatedPropertyType != AnimatedUnknown); |
| 108 ASSERT(m_animator); | 108 ASSERT(m_animator); |
| 109 ASSERT(m_animator->type() == m_animatedPropertyType); | 109 ASSERT(m_animator->type() == m_animatedPropertyType); |
| 110 ASSERT(m_fromType); | 110 ASSERT(m_fromType); |
| 111 ASSERT(m_fromType->type() == m_animatedPropertyType); | 111 ASSERT(m_fromType->type() == m_animatedPropertyType); |
| 112 ASSERT(m_toType); | 112 ASSERT(m_toType); |
| 113 | 113 |
| 114 ASSERT(resultElement->hasTagName(SVGNames::animateTag) | 114 ASSERT(resultElement->hasTagName(SVGNames::animateColorTag) |
| 115 || resultElement->hasTagName(SVGNames::animateColorTag) | |
| 116 || resultElement->hasTagName(SVGNames::animateTransformTag) | 115 || resultElement->hasTagName(SVGNames::animateTransformTag) |
| 117 || resultElement->hasTagName(SVGNames::setTag)); | 116 || resultElement->hasTagName(SVGNames::setTag)); |
| 118 | 117 |
| 119 SVGAnimateElement* resultAnimationElement = static_cast<SVGAnimateElement*>(
resultElement); | 118 SVGAnimateElement* resultAnimationElement = toSVGAnimateElement(resultElemen
t); |
| 120 ASSERT(resultAnimationElement->m_animatedType); | 119 ASSERT(resultAnimationElement->m_animatedType); |
| 121 ASSERT(resultAnimationElement->m_animatedPropertyType == m_animatedPropertyT
ype); | 120 ASSERT(resultAnimationElement->m_animatedPropertyType == m_animatedPropertyT
ype); |
| 122 | 121 |
| 123 if (hasTagName(SVGNames::setTag)) | 122 if (hasTagName(SVGNames::setTag)) |
| 124 percentage = 1; | 123 percentage = 1; |
| 125 | 124 |
| 126 if (calcMode() == CalcModeDiscrete) | 125 if (calcMode() == CalcModeDiscrete) |
| 127 percentage = percentage < 0.5 ? 0 : 1; | 126 percentage = percentage < 0.5 ? 0 : 1; |
| 128 | 127 |
| 129 // Target element might have changed. | 128 // Target element might have changed. |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 | 424 |
| 426 SVGAnimatedTypeAnimator* SVGAnimateElement::ensureAnimator() | 425 SVGAnimatedTypeAnimator* SVGAnimateElement::ensureAnimator() |
| 427 { | 426 { |
| 428 if (!m_animator) | 427 if (!m_animator) |
| 429 m_animator = SVGAnimatorFactory::create(this, targetElement(), m_animate
dPropertyType); | 428 m_animator = SVGAnimatorFactory::create(this, targetElement(), m_animate
dPropertyType); |
| 430 ASSERT(m_animatedPropertyType == m_animator->type()); | 429 ASSERT(m_animatedPropertyType == m_animator->type()); |
| 431 return m_animator.get(); | 430 return m_animator.get(); |
| 432 } | 431 } |
| 433 | 432 |
| 434 } | 433 } |
| OLD | NEW |