summaryrefslogtreecommitdiffstats
path: root/WebCore/svg/SVGStopElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/svg/SVGStopElement.h')
-rw-r--r--WebCore/svg/SVGStopElement.h29
1 files changed, 14 insertions, 15 deletions
diff --git a/WebCore/svg/SVGStopElement.h b/WebCore/svg/SVGStopElement.h
index 907afae..8da2655 100644
--- a/WebCore/svg/SVGStopElement.h
+++ b/WebCore/svg/SVGStopElement.h
@@ -22,31 +22,30 @@
#define SVGStopElement_h
#if ENABLE(SVG)
-#include "SVGAnimatedNumber.h"
+#include "SVGAnimatedPropertyMacros.h"
#include "SVGStyledElement.h"
namespace WebCore {
-class SVGStopElement : public SVGStyledElement {
-public:
- static PassRefPtr<SVGStopElement> create(const QualifiedName&, Document*);
+ class SVGStopElement : public SVGStyledElement {
+ public:
+ static PassRefPtr<SVGStopElement> create(const QualifiedName&, Document*);
- Color stopColorIncludingOpacity() const;
+ Color stopColorIncludingOpacity() const;
-private:
- SVGStopElement(const QualifiedName&, Document*);
+ private:
+ SVGStopElement(const QualifiedName&, Document*);
- virtual void parseMappedAttribute(Attribute*);
- virtual void svgAttributeChanged(const QualifiedName&);
- virtual void synchronizeProperty(const QualifiedName&);
+ virtual void parseMappedAttribute(Attribute*);
+ virtual void svgAttributeChanged(const QualifiedName&);
+ virtual void synchronizeProperty(const QualifiedName&);
- virtual bool isGradientStop() const { return true; }
+ virtual bool isGradientStop() const { return true; }
- virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
+ virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
- // Animated property declarations
- DECLARE_ANIMATED_NUMBER(Offset, offset)
-};
+ DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGStopElement, SVGNames::offsetAttr, float, Offset, offset)
+ };
} // namespace WebCore