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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 supportedAttributes.add(SVGNames::valuesAttr); | 145 supportedAttributes.add(SVGNames::valuesAttr); |
146 supportedAttributes.add(SVGNames::keyTimesAttr); | 146 supportedAttributes.add(SVGNames::keyTimesAttr); |
147 supportedAttributes.add(SVGNames::keyPointsAttr); | 147 supportedAttributes.add(SVGNames::keyPointsAttr); |
148 supportedAttributes.add(SVGNames::keySplinesAttr); | 148 supportedAttributes.add(SVGNames::keySplinesAttr); |
149 supportedAttributes.add(SVGNames::attributeTypeAttr); | 149 supportedAttributes.add(SVGNames::attributeTypeAttr); |
150 supportedAttributes.add(SVGNames::calcModeAttr); | 150 supportedAttributes.add(SVGNames::calcModeAttr); |
151 supportedAttributes.add(SVGNames::fromAttr); | 151 supportedAttributes.add(SVGNames::fromAttr); |
152 supportedAttributes.add(SVGNames::toAttr); | 152 supportedAttributes.add(SVGNames::toAttr); |
153 supportedAttributes.add(SVGNames::byAttr); | 153 supportedAttributes.add(SVGNames::byAttr); |
154 } | 154 } |
155 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato
r>(attrName); | 155 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName); |
156 } | 156 } |
157 | 157 |
158 void SVGAnimationElement::parseAttribute(const QualifiedName& name, const Atomic
String& value) | 158 void SVGAnimationElement::parseAttribute(const QualifiedName& name, const Atomic
String& value) |
159 { | 159 { |
160 if (!isSupportedAttribute(name)) { | 160 if (!isSupportedAttribute(name)) { |
161 SVGSMILElement::parseAttribute(name, value); | 161 SVGSMILElement::parseAttribute(name, value); |
162 return; | 162 return; |
163 } | 163 } |
164 | 164 |
165 if (name == SVGNames::valuesAttr) { | 165 if (name == SVGNames::valuesAttr) { |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
688 SVGSMILElement::setAttributeName(attributeName); | 688 SVGSMILElement::setAttributeName(attributeName); |
689 checkInvalidCSSAttributeType(targetElement()); | 689 checkInvalidCSSAttributeType(targetElement()); |
690 } | 690 } |
691 | 691 |
692 void SVGAnimationElement::checkInvalidCSSAttributeType(SVGElement* target) | 692 void SVGAnimationElement::checkInvalidCSSAttributeType(SVGElement* target) |
693 { | 693 { |
694 m_hasInvalidCSSAttributeType = target && hasValidAttributeName() && attribut
eType() == AttributeTypeCSS && !isTargetAttributeCSSProperty(target, attributeNa
me()); | 694 m_hasInvalidCSSAttributeType = target && hasValidAttributeName() && attribut
eType() == AttributeTypeCSS && !isTargetAttributeCSSProperty(target, attributeNa
me()); |
695 } | 695 } |
696 | 696 |
697 } | 697 } |
OLD | NEW |