summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/svg/SVGEllipseElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/svg/SVGEllipseElement.h')
-rw-r--r--chromium/third_party/WebKit/Source/core/svg/SVGEllipseElement.h33
1 files changed, 14 insertions, 19 deletions
diff --git a/chromium/third_party/WebKit/Source/core/svg/SVGEllipseElement.h b/chromium/third_party/WebKit/Source/core/svg/SVGEllipseElement.h
index e0cc981a96c..b2381ce6d17 100644
--- a/chromium/third_party/WebKit/Source/core/svg/SVGEllipseElement.h
+++ b/chromium/third_party/WebKit/Source/core/svg/SVGEllipseElement.h
@@ -21,44 +21,39 @@
#ifndef SVGEllipseElement_h
#define SVGEllipseElement_h
-#include "SVGNames.h"
+#include "core/SVGNames.h"
#include "core/svg/SVGAnimatedBoolean.h"
#include "core/svg/SVGAnimatedLength.h"
-#include "core/svg/SVGExternalResourcesRequired.h"
#include "core/svg/SVGGeometryElement.h"
namespace WebCore {
-class SVGEllipseElement FINAL : public SVGGeometryElement,
- public SVGExternalResourcesRequired {
+class SVGEllipseElement FINAL : public SVGGeometryElement {
public:
- static PassRefPtr<SVGEllipseElement> create(Document&);
+ DECLARE_NODE_FACTORY(SVGEllipseElement);
+
+ SVGAnimatedLength* cx() const { return m_cx.get(); }
+ SVGAnimatedLength* cy() const { return m_cy.get(); }
+ SVGAnimatedLength* rx() const { return m_rx.get(); }
+ SVGAnimatedLength* ry() const { return m_ry.get(); }
private:
explicit SVGEllipseElement(Document&);
- virtual bool isValid() const { return SVGTests::isValid(); }
- virtual bool supportsFocus() const OVERRIDE { return hasFocusEventListeners(); }
-
bool isSupportedAttribute(const QualifiedName&);
virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
- virtual void svgAttributeChanged(const QualifiedName&);
+ virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
- virtual bool selfHasRelativeLengths() const;
+ virtual bool selfHasRelativeLengths() const OVERRIDE;
virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
- BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGEllipseElement)
- DECLARE_ANIMATED_LENGTH(Cx, cx)
- DECLARE_ANIMATED_LENGTH(Cy, cy)
- DECLARE_ANIMATED_LENGTH(Rx, rx)
- DECLARE_ANIMATED_LENGTH(Ry, ry)
- DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired)
- END_DECLARE_ANIMATED_PROPERTIES
+ RefPtr<SVGAnimatedLength> m_cx;
+ RefPtr<SVGAnimatedLength> m_cy;
+ RefPtr<SVGAnimatedLength> m_rx;
+ RefPtr<SVGAnimatedLength> m_ry;
};
-DEFINE_NODE_TYPE_CASTS(SVGEllipseElement, hasTagName(SVGNames::ellipseTag));
-
} // namespace WebCore
#endif