diff options
Diffstat (limited to 'WebCore/svg/SVGComponentTransferFunctionElement.h')
-rw-r--r-- | WebCore/svg/SVGComponentTransferFunctionElement.h | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/WebCore/svg/SVGComponentTransferFunctionElement.h b/WebCore/svg/SVGComponentTransferFunctionElement.h index e02fc16..7c56507 100644 --- a/WebCore/svg/SVGComponentTransferFunctionElement.h +++ b/WebCore/svg/SVGComponentTransferFunctionElement.h @@ -23,30 +23,31 @@ #if ENABLE(SVG) && ENABLE(FILTERS) #include "FEComponentTransfer.h" -#include "SVGAnimatedPropertyMacros.h" -#include "SVGNumberList.h" +#include "SVGAnimatedNumber.h" +#include "SVGAnimatedNumberList.h" namespace WebCore { - class SVGComponentTransferFunctionElement : public SVGElement { - public: - ComponentTransferFunction transferFunction() const; - - protected: - SVGComponentTransferFunctionElement(const QualifiedName&, Document*); - - virtual void parseMappedAttribute(Attribute*); - virtual void synchronizeProperty(const QualifiedName&); - - private: - DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGComponentTransferFunctionElement, SVGNames::typeAttr, int, Type, type) - DECLARE_ANIMATED_LIST_PROPERTY_NEW(SVGComponentTransferFunctionElement, SVGNames::tableValuesAttr, SVGNumberList, TableValues, tableValues) - DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGComponentTransferFunctionElement, SVGNames::slopeAttr, float, Slope, slope) - DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGComponentTransferFunctionElement, SVGNames::interceptAttr, float, Intercept, intercept) - DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGComponentTransferFunctionElement, SVGNames::amplitudeAttr, float, Amplitude, amplitude) - DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGComponentTransferFunctionElement, SVGNames::exponentAttr, float, Exponent, exponent) - DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGComponentTransferFunctionElement, SVGNames::offsetAttr, float, Offset, offset) - }; +class SVGComponentTransferFunctionElement : public SVGElement { +public: + ComponentTransferFunction transferFunction() const; + +protected: + SVGComponentTransferFunctionElement(const QualifiedName&, Document*); + + virtual void parseMappedAttribute(Attribute*); + virtual void synchronizeProperty(const QualifiedName&); + +private: + // Animated property declarations + DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGComponentTransferFunctionElement, SVGNames::typeAttr, int, Type, type) + DECLARE_ANIMATED_NUMBER_LIST(TableValues, tableValues) + DECLARE_ANIMATED_NUMBER(Slope, slope) + DECLARE_ANIMATED_NUMBER(Intercept, intercept) + DECLARE_ANIMATED_NUMBER(Amplitude, amplitude) + DECLARE_ANIMATED_NUMBER(Exponent, exponent) + DECLARE_ANIMATED_NUMBER(Offset, offset) +}; } // namespace WebCore |