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

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

Issue 1011983003: Drop SVGPathSegWithContext (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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/core.gypi ('k') | Source/core/svg/SVGPathSegArc.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGPathSeg.h
diff --git a/Source/core/svg/SVGPathSeg.h b/Source/core/svg/SVGPathSeg.h
index d28cab80f2f3a15b11c9d6aaf5ee9d9ca97c8ce5..8b1f65601cc306e4cd215b73b5f754988d2b1911 100644
--- a/Source/core/svg/SVGPathSeg.h
+++ b/Source/core/svg/SVGPathSeg.h
@@ -132,6 +132,35 @@ private:
RawPtrWillBeMember<SVGElement> m_contextElement;
};
+class SVGPathSegSingleCoordinate : public SVGPathSeg {
+public:
+ float x() const { return m_x; }
+ void setX(float x)
+ {
+ m_x = x;
+ commitChange();
+ }
+
+ float y() const { return m_y; }
+ void setY(float y)
+ {
+ m_y = y;
+ commitChange();
+ }
+
+protected:
+ SVGPathSegSingleCoordinate(SVGPathElement* element, float x, float y)
+ : SVGPathSeg(element)
+ , m_x(x)
+ , m_y(y)
+ {
+ }
+
+private:
+ float m_x;
+ float m_y;
+};
+
} // namespace blink
#endif // SVGPathSeg_h
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/svg/SVGPathSegArc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698