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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 SVGAnimationElement::SVGAnimationElement(const QualifiedName& tagName, Document&
document) | 42 SVGAnimationElement::SVGAnimationElement(const QualifiedName& tagName, Document&
document) |
43 : SVGSMILElement(tagName, document) | 43 : SVGSMILElement(tagName, document) |
44 , m_fromPropertyValueType(RegularPropertyValue) | 44 , m_fromPropertyValueType(RegularPropertyValue) |
45 , m_toPropertyValueType(RegularPropertyValue) | 45 , m_toPropertyValueType(RegularPropertyValue) |
46 , m_animationValid(false) | 46 , m_animationValid(false) |
47 , m_attributeType(AttributeTypeAuto) | 47 , m_attributeType(AttributeTypeAuto) |
48 , m_hasInvalidCSSAttributeType(false) | 48 , m_hasInvalidCSSAttributeType(false) |
49 , m_calcMode(CalcModeLinear) | 49 , m_calcMode(CalcModeLinear) |
50 , m_animationMode(NoAnimation) | 50 , m_animationMode(NoAnimation) |
51 { | 51 { |
| 52 ASSERT(RuntimeEnabledFeatures::smilEnabled()); |
52 UseCounter::count(document, UseCounter::SVGAnimationElement); | 53 UseCounter::count(document, UseCounter::SVGAnimationElement); |
53 } | 54 } |
54 | 55 |
55 bool SVGAnimationElement::parseValues(const String& value, Vector<String>& resul
t) | 56 bool SVGAnimationElement::parseValues(const String& value, Vector<String>& resul
t) |
56 { | 57 { |
57 // Per the SMIL specification, leading and trailing white space, | 58 // Per the SMIL specification, leading and trailing white space, |
58 // and white space before and after semicolon separators, is allowed and wil
l be ignored. | 59 // and white space before and after semicolon separators, is allowed and wil
l be ignored. |
59 // http://www.w3.org/TR/SVG11/animate.html#ValuesAttribute | 60 // http://www.w3.org/TR/SVG11/animate.html#ValuesAttribute |
60 result.clear(); | 61 result.clear(); |
61 Vector<String> parseList; | 62 Vector<String> parseList; |
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
722 if (!hasInvalidCSSAttributeType) | 723 if (!hasInvalidCSSAttributeType) |
723 schedule(); | 724 schedule(); |
724 } | 725 } |
725 | 726 |
726 // Clear values that may depend on the previous target. | 727 // Clear values that may depend on the previous target. |
727 if (targetElement()) | 728 if (targetElement()) |
728 clearAnimatedType(); | 729 clearAnimatedType(); |
729 } | 730 } |
730 | 731 |
731 } | 732 } |
OLD | NEW |