| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 SVGAnimationElement::SVGAnimationElement(const QualifiedName& tagName, Document*
document) | 54 SVGAnimationElement::SVGAnimationElement(const QualifiedName& tagName, Document*
document) |
| 55 : SVGSMILElement(tagName, document) | 55 : SVGSMILElement(tagName, document) |
| 56 , m_fromPropertyValueType(RegularPropertyValue) | 56 , m_fromPropertyValueType(RegularPropertyValue) |
| 57 , m_toPropertyValueType(RegularPropertyValue) | 57 , m_toPropertyValueType(RegularPropertyValue) |
| 58 , m_animationValid(false) | 58 , m_animationValid(false) |
| 59 , m_attributeType(AttributeTypeAuto) | 59 , m_attributeType(AttributeTypeAuto) |
| 60 , m_hasInvalidCSSAttributeType(false) | 60 , m_hasInvalidCSSAttributeType(false) |
| 61 , m_calcMode(CalcModeLinear) | 61 , m_calcMode(CalcModeLinear) |
| 62 , m_animationMode(NoAnimation) | 62 , m_animationMode(NoAnimation) |
| 63 { | 63 { |
| 64 ScriptWrappable::init(this); |
| 64 registerAnimatedPropertiesForSVGAnimationElement(); | 65 registerAnimatedPropertiesForSVGAnimationElement(); |
| 65 } | 66 } |
| 66 | 67 |
| 67 static void parseKeyTimes(const String& parse, Vector<float>& result, bool verif
yOrder) | 68 static void parseKeyTimes(const String& parse, Vector<float>& result, bool verif
yOrder) |
| 68 { | 69 { |
| 69 result.clear(); | 70 result.clear(); |
| 70 Vector<String> parseList; | 71 Vector<String> parseList; |
| 71 parse.split(';', parseList); | 72 parse.split(';', parseList); |
| 72 for (unsigned n = 0; n < parseList.size(); ++n) { | 73 for (unsigned n = 0; n < parseList.size(); ++n) { |
| 73 String timeString = parseList[n]; | 74 String timeString = parseList[n]; |
| (...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 } | 695 } |
| 695 | 696 |
| 696 void SVGAnimationElement::checkInvalidCSSAttributeType(SVGElement* target) | 697 void SVGAnimationElement::checkInvalidCSSAttributeType(SVGElement* target) |
| 697 { | 698 { |
| 698 m_hasInvalidCSSAttributeType = target && hasValidAttributeName() && attribut
eType() == AttributeTypeCSS && !isTargetAttributeCSSProperty(target, attributeNa
me()); | 699 m_hasInvalidCSSAttributeType = target && hasValidAttributeName() && attribut
eType() == AttributeTypeCSS && !isTargetAttributeCSSProperty(target, attributeNa
me()); |
| 699 } | 700 } |
| 700 | 701 |
| 701 } | 702 } |
| 702 | 703 |
| 703 #endif // ENABLE(SVG) | 704 #endif // ENABLE(SVG) |
| OLD | NEW |