summaryrefslogtreecommitdiffstats
path: root/WebCore/svg/SVGPathElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/svg/SVGPathElement.h')
-rw-r--r--WebCore/svg/SVGPathElement.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/WebCore/svg/SVGPathElement.h b/WebCore/svg/SVGPathElement.h
index 07612c6..cc4e7bd 100644
--- a/WebCore/svg/SVGPathElement.h
+++ b/WebCore/svg/SVGPathElement.h
@@ -50,16 +50,15 @@ namespace WebCore {
class SVGPathSegCurvetoCubicSmoothRel;
class SVGPathSegCurvetoQuadraticSmoothAbs;
class SVGPathSegCurvetoQuadraticSmoothRel;
+
class SVGPathElement : public SVGStyledTransformableElement,
public SVGTests,
public SVGLangSpace,
public SVGExternalResourcesRequired,
public SVGAnimatedPathData {
public:
- SVGPathElement(const QualifiedName&, Document*);
- virtual ~SVGPathElement();
+ static PassRefPtr<SVGPathElement> create(const QualifiedName&, Document*);
- virtual bool isValid() const { return SVGTests::isValid(); }
float getTotalLength();
FloatPoint getPointAtLength(float distance);
unsigned long getPathSegAtLength(float distance);
@@ -90,15 +89,19 @@ namespace WebCore {
virtual SVGPathSegList* animatedPathSegList() const;
virtual SVGPathSegList* animatedNormalizedPathSegList() const;
+ virtual Path toPathData() const;
+
+ private:
+ SVGPathElement(const QualifiedName&, Document*);
+
+ virtual bool isValid() const { return SVGTests::isValid(); }
+
virtual void parseMappedAttribute(Attribute*);
virtual void svgAttributeChanged(const QualifiedName&);
virtual void synchronizeProperty(const QualifiedName&);
- virtual Path toPathData() const;
-
virtual bool supportsMarkers() const { return true; }
- private:
mutable RefPtr<SVGPathSegList> m_pathSegList;
DECLARE_ANIMATED_PROPERTY(SVGPathElement, SVGNames::pathLengthAttr, float, PathLength, pathLength)