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 SVGEllipseElement FINAL : public SVGGeometryElement, | 32 class SVGEllipseElement FINAL : public SVGGeometryElement, |
33 public SVGExternalResourcesRequired { | 33 public SVGExternalResourcesRequired { |
34 public: | 34 public: |
35 static PassRefPtr<SVGEllipseElement> create(Document&); | 35 static PassRefPtr<SVGEllipseElement> create(Document&); |
36 | 36 |
| 37 SVGAnimatedLength* cx() const { return m_cx.get(); } |
| 38 SVGAnimatedLength* cy() const { return m_cy.get(); } |
| 39 SVGAnimatedLength* rx() const { return m_rx.get(); } |
| 40 SVGAnimatedLength* ry() const { return m_ry.get(); } |
| 41 |
37 private: | 42 private: |
38 explicit SVGEllipseElement(Document&); | 43 explicit SVGEllipseElement(Document&); |
39 | 44 |
40 virtual bool isValid() const { return SVGTests::isValid(); } | 45 virtual bool isValid() const { return SVGTests::isValid(); } |
41 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners(
); } | 46 virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners(
); } |
42 | 47 |
43 bool isSupportedAttribute(const QualifiedName&); | 48 bool isSupportedAttribute(const QualifiedName&); |
44 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 49 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
45 virtual void svgAttributeChanged(const QualifiedName&); | 50 virtual void svgAttributeChanged(const QualifiedName&); |
46 | 51 |
47 virtual bool selfHasRelativeLengths() const; | 52 virtual bool selfHasRelativeLengths() const; |
48 | 53 |
49 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; | 54 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; |
50 | 55 |
| 56 RefPtr<SVGAnimatedLength> m_cx; |
| 57 RefPtr<SVGAnimatedLength> m_cy; |
| 58 RefPtr<SVGAnimatedLength> m_rx; |
| 59 RefPtr<SVGAnimatedLength> m_ry; |
51 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGEllipseElement) | 60 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGEllipseElement) |
52 DECLARE_ANIMATED_LENGTH(Cx, cx) | |
53 DECLARE_ANIMATED_LENGTH(Cy, cy) | |
54 DECLARE_ANIMATED_LENGTH(Rx, rx) | |
55 DECLARE_ANIMATED_LENGTH(Ry, ry) | |
56 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) | 61 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) |
57 END_DECLARE_ANIMATED_PROPERTIES | 62 END_DECLARE_ANIMATED_PROPERTIES |
58 }; | 63 }; |
59 | 64 |
60 DEFINE_NODE_TYPE_CASTS(SVGEllipseElement, hasTagName(SVGNames::ellipseTag)); | 65 DEFINE_NODE_TYPE_CASTS(SVGEllipseElement, hasTagName(SVGNames::ellipseTag)); |
61 | 66 |
62 } // namespace WebCore | 67 } // namespace WebCore |
63 | 68 |
64 #endif | 69 #endif |
OLD | NEW |