Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1145)

Unified Diff: Source/core/svg/SVGEllipseElement.h

Issue 112003003: [SVG] SVGLength{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaselined Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/svg/SVGEllipseElement.h
diff --git a/Source/core/svg/SVGEllipseElement.h b/Source/core/svg/SVGEllipseElement.h
index e0cc981a96ce28f09fef7b8c31fd618d50dacb71..384333c216f00d6c015be27b0e82c38c251e1a7a 100644
--- a/Source/core/svg/SVGEllipseElement.h
+++ b/Source/core/svg/SVGEllipseElement.h
@@ -34,6 +34,11 @@ class SVGEllipseElement FINAL : public SVGGeometryElement,
public:
static PassRefPtr<SVGEllipseElement> create(Document&);
+ 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&);
@@ -48,11 +53,11 @@ private:
virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
+ RefPtr<SVGAnimatedLength> m_cx;
+ RefPtr<SVGAnimatedLength> m_cy;
+ RefPtr<SVGAnimatedLength> m_rx;
+ RefPtr<SVGAnimatedLength> m_ry;
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
};

Powered by Google App Engine
This is Rietveld 408576698