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

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

Issue 112003003: [SVG] SVGLength{,List} migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: revert aggressive svgAttributeChanged, add NeedsRebaseline Created 6 years, 11 months 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
« no previous file with comments | « Source/core/svg/SVGLengthTearOff.cpp ('k') | Source/core/svg/SVGLineElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGLineElement.h
diff --git a/Source/core/svg/SVGLineElement.h b/Source/core/svg/SVGLineElement.h
index 45fe40b62e0b90d87ec99e7523970e8d7c8badea..f01dc19b6b07cc64ab3cfa41b23326cf86b35d6a 100644
--- a/Source/core/svg/SVGLineElement.h
+++ b/Source/core/svg/SVGLineElement.h
@@ -32,6 +32,11 @@ class SVGLineElement FINAL : public SVGGeometryElement {
public:
static PassRefPtr<SVGLineElement> create(Document&);
+ SVGAnimatedLength* x1() const { return m_x1.get(); }
+ SVGAnimatedLength* y1() const { return m_y1.get(); }
+ SVGAnimatedLength* x2() const { return m_x2.get(); }
+ SVGAnimatedLength* y2() const { return m_y2.get(); }
+
private:
explicit SVGLineElement(Document&);
@@ -46,11 +51,11 @@ private:
virtual bool selfHasRelativeLengths() const;
+ RefPtr<SVGAnimatedLength> m_x1;
+ RefPtr<SVGAnimatedLength> m_y1;
+ RefPtr<SVGAnimatedLength> m_x2;
+ RefPtr<SVGAnimatedLength> m_y2;
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGLineElement)
- DECLARE_ANIMATED_LENGTH(X1, x1)
- DECLARE_ANIMATED_LENGTH(Y1, y1)
- DECLARE_ANIMATED_LENGTH(X2, x2)
- DECLARE_ANIMATED_LENGTH(Y2, y2)
END_DECLARE_ANIMATED_PROPERTIES
};
« no previous file with comments | « Source/core/svg/SVGLengthTearOff.cpp ('k') | Source/core/svg/SVGLineElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698