| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2008 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 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 // Animated property definitions | 49 // Animated property definitions |
| 50 DEFINE_ANIMATED_BOOLEAN(SVGPolyElement, SVGNames::externalResourcesRequiredAttr,
ExternalResourcesRequired, externalResourcesRequired) | 50 DEFINE_ANIMATED_BOOLEAN(SVGPolyElement, SVGNames::externalResourcesRequiredAttr,
ExternalResourcesRequired, externalResourcesRequired) |
| 51 | 51 |
| 52 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGPolyElement) | 52 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGPolyElement) |
| 53 REGISTER_LOCAL_ANIMATED_PROPERTY(points) | 53 REGISTER_LOCAL_ANIMATED_PROPERTY(points) |
| 54 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) | 54 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) |
| 55 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement) | 55 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement) |
| 56 END_REGISTER_ANIMATED_PROPERTIES | 56 END_REGISTER_ANIMATED_PROPERTIES |
| 57 | 57 |
| 58 SVGPolyElement::SVGPolyElement(const QualifiedName& tagName, Document* document) | 58 SVGPolyElement::SVGPolyElement(const QualifiedName& tagName, Document& document) |
| 59 : SVGGraphicsElement(tagName, document) | 59 : SVGGraphicsElement(tagName, document) |
| 60 { | 60 { |
| 61 registerAnimatedPropertiesForSVGPolyElement(); | 61 registerAnimatedPropertiesForSVGPolyElement(); |
| 62 } | 62 } |
| 63 | 63 |
| 64 bool SVGPolyElement::isSupportedAttribute(const QualifiedName& attrName) | 64 bool SVGPolyElement::isSupportedAttribute(const QualifiedName& attrName) |
| 65 { | 65 { |
| 66 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 66 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
| 67 if (supportedAttributes.isEmpty()) { | 67 if (supportedAttributes.isEmpty()) { |
| 68 SVGLangSpace::addSupportedAttributes(supportedAttributes); | 68 SVGLangSpace::addSupportedAttributes(supportedAttributes); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 return static_cast<SVGListPropertyTearOff<SVGPointList>*>(static_pointer_cas
t<SVGAnimatedPointList>(lookupOrCreatePointsWrapper(this))->baseVal()); | 149 return static_cast<SVGListPropertyTearOff<SVGPointList>*>(static_pointer_cas
t<SVGAnimatedPointList>(lookupOrCreatePointsWrapper(this))->baseVal()); |
| 150 } | 150 } |
| 151 | 151 |
| 152 SVGListPropertyTearOff<SVGPointList>* SVGPolyElement::animatedPoints() | 152 SVGListPropertyTearOff<SVGPointList>* SVGPolyElement::animatedPoints() |
| 153 { | 153 { |
| 154 m_points.shouldSynchronize = true; | 154 m_points.shouldSynchronize = true; |
| 155 return static_cast<SVGListPropertyTearOff<SVGPointList>*>(static_pointer_cas
t<SVGAnimatedPointList>(lookupOrCreatePointsWrapper(this))->animVal()); | 155 return static_cast<SVGListPropertyTearOff<SVGPointList>*>(static_pointer_cas
t<SVGAnimatedPointList>(lookupOrCreatePointsWrapper(this))->animVal()); |
| 156 } | 156 } |
| 157 | 157 |
| 158 } | 158 } |
| OLD | NEW |