| 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 23 matching lines...) Expand all Loading... |
| 34 SVGListPropertyTearOff<SVGPointList>* animatedPoints(); | 34 SVGListPropertyTearOff<SVGPointList>* animatedPoints(); |
| 35 | 35 |
| 36 SVGPointList& pointsCurrentValue(); | 36 SVGPointList& pointsCurrentValue(); |
| 37 | 37 |
| 38 static const SVGPropertyInfo* pointsPropertyInfo(); | 38 static const SVGPropertyInfo* pointsPropertyInfo(); |
| 39 | 39 |
| 40 protected: | 40 protected: |
| 41 SVGPolyElement(const QualifiedName&, Document&); | 41 SVGPolyElement(const QualifiedName&, Document&); |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 virtual bool isValid() const OVERRIDE FINAL { return SVGTests::isValid(); } | |
| 45 virtual bool supportsFocus() const OVERRIDE FINAL { return hasFocusEventList
eners(); } | 44 virtual bool supportsFocus() const OVERRIDE FINAL { return hasFocusEventList
eners(); } |
| 46 | 45 |
| 47 bool isSupportedAttribute(const QualifiedName&); | 46 bool isSupportedAttribute(const QualifiedName&); |
| 48 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE FINAL; | 47 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE FINAL; |
| 49 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE FINAL; | 48 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE FINAL; |
| 50 | 49 |
| 51 virtual bool supportsMarkers() const OVERRIDE FINAL { return true; } | 50 virtual bool supportsMarkers() const OVERRIDE FINAL { return true; } |
| 52 | 51 |
| 53 // Custom 'points' property | 52 // Custom 'points' property |
| 54 static void synchronizePoints(SVGElement* contextElement); | 53 static void synchronizePoints(SVGElement* contextElement); |
| 55 static PassRefPtr<SVGAnimatedProperty> lookupOrCreatePointsWrapper(SVGElemen
t* contextElement); | 54 static PassRefPtr<SVGAnimatedProperty> lookupOrCreatePointsWrapper(SVGElemen
t* contextElement); |
| 56 | 55 |
| 57 mutable SVGSynchronizableAnimatedProperty<SVGPointList> m_points; | 56 mutable SVGSynchronizableAnimatedProperty<SVGPointList> m_points; |
| 58 | 57 |
| 59 private: | 58 private: |
| 60 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPolyElement) | 59 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGPolyElement) |
| 61 END_DECLARE_ANIMATED_PROPERTIES | 60 END_DECLARE_ANIMATED_PROPERTIES |
| 62 }; | 61 }; |
| 63 | 62 |
| 64 inline bool isSVGPolyElement(const Node& node) | 63 inline bool isSVGPolyElement(const Node& node) |
| 65 { | 64 { |
| 66 return node.hasTagName(SVGNames::polygonTag) || node.hasTagName(SVGNames::po
lylineTag); | 65 return node.hasTagName(SVGNames::polygonTag) || node.hasTagName(SVGNames::po
lylineTag); |
| 67 } | 66 } |
| 68 | 67 |
| 69 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGPolyElement); | 68 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGPolyElement); |
| 70 | 69 |
| 71 } // namespace WebCore | 70 } // namespace WebCore |
| 72 | 71 |
| 73 #endif | 72 #endif |
| OLD | NEW |