| 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, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
| 5 * Copyright (C) 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> | 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> |
| 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "core/css/parser/BisonCSSParser.h" | 32 #include "core/css/parser/BisonCSSParser.h" |
| 33 #include "core/frame/UseCounter.h" | 33 #include "core/frame/UseCounter.h" |
| 34 #include "core/svg/SVGAnimateElement.h" | 34 #include "core/svg/SVGAnimateElement.h" |
| 35 #include "core/svg/SVGElement.h" | 35 #include "core/svg/SVGElement.h" |
| 36 #include "core/svg/SVGParserUtilities.h" | 36 #include "core/svg/SVGParserUtilities.h" |
| 37 #include "platform/FloatConversion.h" | 37 #include "platform/FloatConversion.h" |
| 38 #include "wtf/MathExtras.h" | 38 #include "wtf/MathExtras.h" |
| 39 | 39 |
| 40 namespace WebCore { | 40 namespace WebCore { |
| 41 | 41 |
| 42 // Animated property definitions | |
| 43 | |
| 44 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGAnimationElement) | |
| 45 END_REGISTER_ANIMATED_PROPERTIES | |
| 46 | |
| 47 SVGAnimationElement::SVGAnimationElement(const QualifiedName& tagName, Document&
document) | 42 SVGAnimationElement::SVGAnimationElement(const QualifiedName& tagName, Document&
document) |
| 48 : SVGSMILElement(tagName, document) | 43 : SVGSMILElement(tagName, document) |
| 49 , SVGTests(this) | 44 , SVGTests(this) |
| 50 , m_fromPropertyValueType(RegularPropertyValue) | 45 , m_fromPropertyValueType(RegularPropertyValue) |
| 51 , m_toPropertyValueType(RegularPropertyValue) | 46 , m_toPropertyValueType(RegularPropertyValue) |
| 52 , m_animationValid(false) | 47 , m_animationValid(false) |
| 53 , m_attributeType(AttributeTypeAuto) | 48 , m_attributeType(AttributeTypeAuto) |
| 54 , m_hasInvalidCSSAttributeType(false) | 49 , m_hasInvalidCSSAttributeType(false) |
| 55 , m_calcMode(CalcModeLinear) | 50 , m_calcMode(CalcModeLinear) |
| 56 , m_animationMode(NoAnimation) | 51 , m_animationMode(NoAnimation) |
| (...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 SVGSMILElement::setAttributeName(attributeName); | 686 SVGSMILElement::setAttributeName(attributeName); |
| 692 checkInvalidCSSAttributeType(targetElement()); | 687 checkInvalidCSSAttributeType(targetElement()); |
| 693 } | 688 } |
| 694 | 689 |
| 695 void SVGAnimationElement::checkInvalidCSSAttributeType(SVGElement* target) | 690 void SVGAnimationElement::checkInvalidCSSAttributeType(SVGElement* target) |
| 696 { | 691 { |
| 697 m_hasInvalidCSSAttributeType = target && hasValidAttributeName() && attribut
eType() == AttributeTypeCSS && !isTargetAttributeCSSProperty(target, attributeNa
me()); | 692 m_hasInvalidCSSAttributeType = target && hasValidAttributeName() && attribut
eType() == AttributeTypeCSS && !isTargetAttributeCSSProperty(target, attributeNa
me()); |
| 698 } | 693 } |
| 699 | 694 |
| 700 } | 695 } |
| OLD | NEW |