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 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 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 16 matching lines...) Expand all Loading... |
27 #include "core/svg/SVGExternalResourcesRequired.h" | 27 #include "core/svg/SVGExternalResourcesRequired.h" |
28 #include "core/svg/SVGGeometryElement.h" | 28 #include "core/svg/SVGGeometryElement.h" |
29 | 29 |
30 namespace WebCore { | 30 namespace WebCore { |
31 | 31 |
32 class SVGCircleElement FINAL : public SVGGeometryElement, | 32 class SVGCircleElement FINAL : public SVGGeometryElement, |
33 public SVGExternalResourcesRequired { | 33 public SVGExternalResourcesRequired { |
34 public: | 34 public: |
35 static PassRefPtr<SVGCircleElement> create(Document&); | 35 static PassRefPtr<SVGCircleElement> create(Document&); |
36 | 36 |
| 37 SVGAnimatedLength* cx() const { return m_cx.get(); } |
| 38 SVGAnimatedLength* cy() const { return m_cy.get(); } |
| 39 SVGAnimatedLength* r() const { return m_r.get(); } |
| 40 |
37 private: | 41 private: |
38 explicit SVGCircleElement(Document&); | 42 explicit SVGCircleElement(Document&); |
39 | 43 |
40 virtual bool isValid() const { return SVGTests::isValid(); } | 44 virtual bool isValid() const { return SVGTests::isValid(); } |
41 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners(
); } | 45 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners(
); } |
42 | 46 |
43 bool isSupportedAttribute(const QualifiedName&); | 47 bool isSupportedAttribute(const QualifiedName&); |
44 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 48 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
45 virtual void svgAttributeChanged(const QualifiedName&); | 49 virtual void svgAttributeChanged(const QualifiedName&); |
46 | 50 |
47 virtual bool selfHasRelativeLengths() const; | 51 virtual bool selfHasRelativeLengths() const; |
48 | 52 |
49 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; | 53 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |
50 | 54 |
| 55 RefPtr<SVGAnimatedLength> m_cx; |
| 56 RefPtr<SVGAnimatedLength> m_cy; |
| 57 RefPtr<SVGAnimatedLength> m_r; |
51 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGCircleElement) | 58 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGCircleElement) |
52 DECLARE_ANIMATED_LENGTH(Cx, cx) | |
53 DECLARE_ANIMATED_LENGTH(Cy, cy) | |
54 DECLARE_ANIMATED_LENGTH(R, r) | |
55 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) | 59 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) |
56 END_DECLARE_ANIMATED_PROPERTIES | 60 END_DECLARE_ANIMATED_PROPERTIES |
57 }; | 61 }; |
58 | 62 |
59 DEFINE_NODE_TYPE_CASTS(SVGCircleElement, hasTagName(SVGNames::circleTag)); | 63 DEFINE_NODE_TYPE_CASTS(SVGCircleElement, hasTagName(SVGNames::circleTag)); |
60 | 64 |
61 } // namespace WebCore | 65 } // namespace WebCore |
62 | 66 |
63 #endif // SVGCircleElement_h | 67 #endif // SVGCircleElement_h |
OLD | NEW |