| 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
|
|
|