| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 const SVGAnimatedTransformList* transform() const { return m_transform.get()
; } | 65 const SVGAnimatedTransformList* transform() const { return m_transform.get()
; } |
| 66 | 66 |
| 67 protected: | 67 protected: |
| 68 SVGGraphicsElement(const QualifiedName&, Document&, ConstructionType = Creat
eSVGElement); | 68 SVGGraphicsElement(const QualifiedName&, Document&, ConstructionType = Creat
eSVGElement); |
| 69 | 69 |
| 70 bool isSupportedAttribute(const QualifiedName&); | 70 bool isSupportedAttribute(const QualifiedName&); |
| 71 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 71 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
| 72 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 72 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
| 73 | 73 |
| 74 RefPtr<SVGAnimatedTransformList> m_transform; | 74 RefPtr<SVGAnimatedTransformList> m_transform; |
| 75 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGGraphicsElement) | |
| 76 END_DECLARE_ANIMATED_PROPERTIES | |
| 77 | 75 |
| 78 private: | 76 private: |
| 79 virtual bool isSVGGraphicsElement() const OVERRIDE FINAL { return true; } | 77 virtual bool isSVGGraphicsElement() const OVERRIDE FINAL { return true; } |
| 80 | 78 |
| 81 // Used by <animateMotion> | 79 // Used by <animateMotion> |
| 82 OwnPtr<AffineTransform> m_supplementalTransform; | 80 OwnPtr<AffineTransform> m_supplementalTransform; |
| 83 }; | 81 }; |
| 84 | 82 |
| 85 inline bool isSVGGraphicsElement(const Node& node) | 83 inline bool isSVGGraphicsElement(const Node& node) |
| 86 { | 84 { |
| 87 return node.isSVGElement() && toSVGElement(node).isSVGGraphicsElement(); | 85 return node.isSVGElement() && toSVGElement(node).isSVGGraphicsElement(); |
| 88 } | 86 } |
| 89 | 87 |
| 90 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGGraphicsElement); | 88 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGGraphicsElement); |
| 91 | 89 |
| 92 } // namespace WebCore | 90 } // namespace WebCore |
| 93 | 91 |
| 94 #endif // SVGGraphicsElement_h | 92 #endif // SVGGraphicsElement_h |
| OLD | NEW |