Changeset 73024 in webkit
- Timestamp:
- Dec 1, 2010 8:36:29 AM (13 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r73023 r73024 1 2010-12-01 Nikolas Zimmermann <nzimmermann@rim.com> 2 3 Reviewed by Xan Lopez. 4 5 Split DECLARE_ANIMATED_PROPERTY* in DECLARE/DEFINE parts for SVGAnimatedNumber 6 https://bugs.webkit.org/show_bug.cgi?id=50323 7 8 Continuing the work on bug 42025: Introduce DECLARE_ANIMATED_NUMBER / DEFINE_ANIMATED_NUMBER. 9 The animated property declaration lives in the header, the definition in the cpp file, to avoid the dependency on SVGNames.h in all headers. 10 11 No functional changes, thus no new tests. 12 13 * svg/SVGAnimatedNumber.h: 14 * svg/SVGComponentTransferFunctionElement.cpp: 15 * svg/SVGComponentTransferFunctionElement.h: 16 * svg/SVGFECompositeElement.cpp: 17 * svg/SVGFECompositeElement.h: 18 * svg/SVGFEConvolveMatrixElement.cpp: 19 * svg/SVGFEConvolveMatrixElement.h: 20 * svg/SVGFEDiffuseLightingElement.cpp: 21 * svg/SVGFEDiffuseLightingElement.h: 22 * svg/SVGFEDisplacementMapElement.cpp: 23 * svg/SVGFEDisplacementMapElement.h: 24 * svg/SVGFEGaussianBlurElement.cpp: 25 * svg/SVGFEGaussianBlurElement.h: 26 * svg/SVGFELightElement.cpp: 27 * svg/SVGFELightElement.h: 28 * svg/SVGFEMorphologyElement.cpp: 29 * svg/SVGFEMorphologyElement.h: 30 * svg/SVGFEOffsetElement.cpp: 31 * svg/SVGFEOffsetElement.h: 32 * svg/SVGFESpecularLightingElement.cpp: 33 * svg/SVGFESpecularLightingElement.h: 34 * svg/SVGFETurbulenceElement.cpp: 35 * svg/SVGFETurbulenceElement.h: 36 * svg/SVGPathElement.cpp: 37 * svg/SVGPathElement.h: 38 * svg/SVGStopElement.cpp: 39 * svg/SVGStopElement.h: 40 (WebCore::SVGStopElement::isGradientStop): 41 1 42 2010-12-01 Martin Robinson <mrobinson@igalia.com> 2 43 -
trunk/WebCore/svg/SVGAnimatedNumber.h
r70979 r73024 23 23 #if ENABLE(SVG) 24 24 #include "SVGAnimatedStaticPropertyTearOff.h" 25 #include "SVGAnimatedPropertyMacros.h" 25 26 26 27 namespace WebCore { … … 28 29 typedef SVGAnimatedStaticPropertyTearOff<float> SVGAnimatedNumber; 29 30 31 // Helper macros to declare/define a SVGAnimatedNumber object 32 #define DECLARE_ANIMATED_NUMBER(UpperProperty, LowerProperty) \ 33 DECLARE_ANIMATED_PROPERTY(SVGAnimatedNumber, float, UpperProperty, LowerProperty) 34 35 #define DEFINE_ANIMATED_NUMBER(OwnerType, DOMAttribute, UpperProperty, LowerProperty) \ 36 DEFINE_ANIMATED_PROPERTY(OwnerType, DOMAttribute, DOMAttribute.localName(), SVGAnimatedNumber, float, UpperProperty, LowerProperty) 37 38 #define DEFINE_ANIMATED_NUMBER_MULTIPLE_WRAPPERS(OwnerType, DOMAttribute, SVGDOMAttributeIdentifier, UpperProperty, LowerProperty) \ 39 DEFINE_ANIMATED_PROPERTY(OwnerType, DOMAttribute, SVGDOMAttributeIdentifier, SVGAnimatedNumber, float, UpperProperty, LowerProperty) 40 30 41 } // namespace WebCore 31 42 -
trunk/WebCore/svg/SVGComponentTransferFunctionElement.cpp
r73020 r73024 33 33 // Animated property definitions 34 34 DEFINE_ANIMATED_NUMBER_LIST(SVGComponentTransferFunctionElement, SVGNames::tableValuesAttr, TableValues, tableValues) 35 DEFINE_ANIMATED_NUMBER(SVGComponentTransferFunctionElement, SVGNames::slopeAttr, Slope, slope) 36 DEFINE_ANIMATED_NUMBER(SVGComponentTransferFunctionElement, SVGNames::interceptAttr, Intercept, intercept) 37 DEFINE_ANIMATED_NUMBER(SVGComponentTransferFunctionElement, SVGNames::amplitudeAttr, Amplitude, amplitude) 38 DEFINE_ANIMATED_NUMBER(SVGComponentTransferFunctionElement, SVGNames::exponentAttr, Exponent, exponent) 39 DEFINE_ANIMATED_NUMBER(SVGComponentTransferFunctionElement, SVGNames::offsetAttr, Offset, offset) 35 40 36 41 SVGComponentTransferFunctionElement::SVGComponentTransferFunctionElement(const QualifiedName& tagName, Document* document) -
trunk/WebCore/svg/SVGComponentTransferFunctionElement.h
r73020 r73024 24 24 #if ENABLE(SVG) && ENABLE(FILTERS) 25 25 #include "FEComponentTransfer.h" 26 #include "SVGAnimatedNumber.h" 26 27 #include "SVGAnimatedNumberList.h" 27 #include "SVGAnimatedPropertyMacros.h"28 28 29 29 namespace WebCore { … … 43 43 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGComponentTransferFunctionElement, SVGNames::typeAttr, int, Type, type) 44 44 DECLARE_ANIMATED_NUMBER_LIST(TableValues, tableValues) 45 DECLARE_ANIMATED_ STATIC_PROPERTY_NEW(SVGComponentTransferFunctionElement, SVGNames::slopeAttr, float,Slope, slope)46 DECLARE_ANIMATED_ STATIC_PROPERTY_NEW(SVGComponentTransferFunctionElement, SVGNames::interceptAttr, float,Intercept, intercept)47 DECLARE_ANIMATED_ STATIC_PROPERTY_NEW(SVGComponentTransferFunctionElement, SVGNames::amplitudeAttr, float,Amplitude, amplitude)48 DECLARE_ANIMATED_ STATIC_PROPERTY_NEW(SVGComponentTransferFunctionElement, SVGNames::exponentAttr, float,Exponent, exponent)49 DECLARE_ANIMATED_ STATIC_PROPERTY_NEW(SVGComponentTransferFunctionElement, SVGNames::offsetAttr, float,Offset, offset)45 DECLARE_ANIMATED_NUMBER(Slope, slope) 46 DECLARE_ANIMATED_NUMBER(Intercept, intercept) 47 DECLARE_ANIMATED_NUMBER(Amplitude, amplitude) 48 DECLARE_ANIMATED_NUMBER(Exponent, exponent) 49 DECLARE_ANIMATED_NUMBER(Offset, offset) 50 50 }; 51 51 -
trunk/WebCore/svg/SVGFECompositeElement.cpp
r72474 r73024 28 28 29 29 namespace WebCore { 30 31 // Animated property definitions 32 DEFINE_ANIMATED_NUMBER(SVGFECompositeElement, SVGNames::k1Attr, K1, k1) 33 DEFINE_ANIMATED_NUMBER(SVGFECompositeElement, SVGNames::k2Attr, K2, k2) 34 DEFINE_ANIMATED_NUMBER(SVGFECompositeElement, SVGNames::k3Attr, K3, k3) 35 DEFINE_ANIMATED_NUMBER(SVGFECompositeElement, SVGNames::k4Attr, K4, k4) 30 36 31 37 inline SVGFECompositeElement::SVGFECompositeElement(const QualifiedName& tagName, Document* document) -
trunk/WebCore/svg/SVGFECompositeElement.h
r72474 r73024 24 24 #if ENABLE(SVG) && ENABLE(FILTERS) 25 25 #include "FEComposite.h" 26 #include "SVGAnimatedNumber.h" 26 27 #include "SVGFilterPrimitiveStandardAttributes.h" 27 28 … … 40 41 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); 41 42 43 // Animated property declarations 42 44 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFECompositeElement, SVGNames::inAttr, String, In1, in1) 43 45 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFECompositeElement, SVGNames::in2Attr, String, In2, in2) 44 46 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFECompositeElement, SVGNames::operatorAttr, int, _operator, _operator) 45 DECLARE_ANIMATED_ STATIC_PROPERTY_NEW(SVGFECompositeElement, SVGNames::k1Attr, float,K1, k1)46 DECLARE_ANIMATED_ STATIC_PROPERTY_NEW(SVGFECompositeElement, SVGNames::k2Attr, float,K2, k2)47 DECLARE_ANIMATED_ STATIC_PROPERTY_NEW(SVGFECompositeElement, SVGNames::k3Attr, float,K3, k3)48 DECLARE_ANIMATED_ STATIC_PROPERTY_NEW(SVGFECompositeElement, SVGNames::k4Attr, float,K4, k4)47 DECLARE_ANIMATED_NUMBER(K1, k1) 48 DECLARE_ANIMATED_NUMBER(K2, k2) 49 DECLARE_ANIMATED_NUMBER(K3, k3) 50 DECLARE_ANIMATED_NUMBER(K4, k4) 49 51 }; 50 52 -
trunk/WebCore/svg/SVGFEConvolveMatrixElement.cpp
r73020 r73024 34 34 // Animated property definitions 35 35 DEFINE_ANIMATED_NUMBER_LIST(SVGFEConvolveMatrixElement, SVGNames::kernelMatrixAttr, KernelMatrix, kernelMatrix) 36 DEFINE_ANIMATED_NUMBER(SVGFEConvolveMatrixElement, SVGNames::divisorAttr, Divisor, divisor) 37 DEFINE_ANIMATED_NUMBER(SVGFEConvolveMatrixElement, SVGNames::biasAttr, Bias, bias) 38 DEFINE_ANIMATED_NUMBER_MULTIPLE_WRAPPERS(SVGFEConvolveMatrixElement, SVGNames::kernelUnitLengthAttr, kernelUnitLengthXIdentifier(), KernelUnitLengthX, kernelUnitLengthX) 39 DEFINE_ANIMATED_NUMBER_MULTIPLE_WRAPPERS(SVGFEConvolveMatrixElement, SVGNames::kernelUnitLengthAttr, kernelUnitLengthYIdentifier(), KernelUnitLengthY, kernelUnitLengthY) 36 40 37 41 inline SVGFEConvolveMatrixElement::SVGFEConvolveMatrixElement(const QualifiedName& tagName, Document* document) -
trunk/WebCore/svg/SVGFEConvolveMatrixElement.h
r73020 r73024 23 23 #if ENABLE(SVG) && ENABLE(FILTERS) 24 24 #include "FEConvolveMatrix.h" 25 #include "SVGAnimatedNumber.h" 25 26 #include "SVGAnimatedNumberList.h" 26 27 #include "SVGFilterPrimitiveStandardAttributes.h" … … 41 42 virtual void svgAttributeChanged(const QualifiedName&); 42 43 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); 44 43 45 static const AtomicString& orderXIdentifier(); 44 46 static const AtomicString& orderYIdentifier(); 45 46 47 static const AtomicString& kernelUnitLengthXIdentifier(); 47 48 static const AtomicString& kernelUnitLengthYIdentifier(); … … 52 53 DECLARE_ANIMATED_STATIC_PROPERTY_MULTIPLE_WRAPPERS_NEW(SVGFEConvolveMatrixElement, SVGNames::orderAttr, orderYIdentifier(), long, OrderY, orderY) 53 54 DECLARE_ANIMATED_NUMBER_LIST(KernelMatrix, kernelMatrix) 54 DECLARE_ANIMATED_ STATIC_PROPERTY_NEW(SVGFEConvolveMatrixElement, SVGNames::divisorAttr, float,Divisor, divisor)55 DECLARE_ANIMATED_ STATIC_PROPERTY_NEW(SVGFEConvolveMatrixElement, SVGNames::biasAttr, float,Bias, bias)55 DECLARE_ANIMATED_NUMBER(Divisor, divisor) 56 DECLARE_ANIMATED_NUMBER(Bias, bias) 56 57 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFEConvolveMatrixElement, SVGNames::targetXAttr, long, TargetX, targetX) 57 58 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFEConvolveMatrixElement, SVGNames::targetYAttr, long, TargetY, targetY) 58 59 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFEConvolveMatrixElement, SVGNames::operatorAttr, int, EdgeMode, edgeMode) 59 DECLARE_ANIMATED_ STATIC_PROPERTY_MULTIPLE_WRAPPERS_NEW(SVGFEConvolveMatrixElement, SVGNames::kernelUnitLengthAttr, kernelUnitLengthXIdentifier(), float,KernelUnitLengthX, kernelUnitLengthX)60 DECLARE_ANIMATED_ STATIC_PROPERTY_MULTIPLE_WRAPPERS_NEW(SVGFEConvolveMatrixElement, SVGNames::kernelUnitLengthAttr, kernelUnitLengthYIdentifier(), float,KernelUnitLengthY, kernelUnitLengthY)60 DECLARE_ANIMATED_NUMBER(KernelUnitLengthX, kernelUnitLengthX) 61 DECLARE_ANIMATED_NUMBER(KernelUnitLengthY, kernelUnitLengthY) 61 62 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFEConvolveMatrixElement, SVGNames::preserveAlphaAttr, bool, PreserveAlpha, preserveAlpha) 62 63 }; -
trunk/WebCore/svg/SVGFEDiffuseLightingElement.cpp
r72474 r73024 32 32 33 33 namespace WebCore { 34 35 // Animated property definitions 36 DEFINE_ANIMATED_NUMBER(SVGFEDiffuseLightingElement, SVGNames::diffuseConstantAttr, DiffuseConstant, diffuseConstant) 37 DEFINE_ANIMATED_NUMBER(SVGFEDiffuseLightingElement, SVGNames::surfaceScaleAttr, SurfaceScale, surfaceScale) 38 DEFINE_ANIMATED_NUMBER_MULTIPLE_WRAPPERS(SVGFEDiffuseLightingElement, SVGNames::kernelUnitLengthAttr, kernelUnitLengthXIdentifier(), KernelUnitLengthX, kernelUnitLengthX) 39 DEFINE_ANIMATED_NUMBER_MULTIPLE_WRAPPERS(SVGFEDiffuseLightingElement, SVGNames::kernelUnitLengthAttr, kernelUnitLengthYIdentifier(), KernelUnitLengthY, kernelUnitLengthY) 34 40 35 41 inline SVGFEDiffuseLightingElement::SVGFEDiffuseLightingElement(const QualifiedName& tagName, Document* document) -
trunk/WebCore/svg/SVGFEDiffuseLightingElement.h
r72474 r73024 47 47 static const AtomicString& kernelUnitLengthYIdentifier(); 48 48 49 // Animated property declarations 49 50 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFEDiffuseLightingElement, SVGNames::inAttr, String, In1, in1) 50 DECLARE_ANIMATED_ STATIC_PROPERTY_NEW(SVGFEDiffuseLightingElement, SVGNames::diffuseConstantAttr, float,DiffuseConstant, diffuseConstant)51 DECLARE_ANIMATED_ STATIC_PROPERTY_NEW(SVGFEDiffuseLightingElement, SVGNames::surfaceScaleAttr, float,SurfaceScale, surfaceScale)52 DECLARE_ANIMATED_ STATIC_PROPERTY_MULTIPLE_WRAPPERS_NEW(SVGFEDiffuseLightingElement, SVGNames::kernelUnitLengthAttr, kernelUnitLengthXIdentifier(), float,KernelUnitLengthX, kernelUnitLengthX)53 DECLARE_ANIMATED_ STATIC_PROPERTY_MULTIPLE_WRAPPERS_NEW(SVGFEDiffuseLightingElement, SVGNames::kernelUnitLengthAttr, kernelUnitLengthYIdentifier(), float,KernelUnitLengthY, kernelUnitLengthY)51 DECLARE_ANIMATED_NUMBER(DiffuseConstant, diffuseConstant) 52 DECLARE_ANIMATED_NUMBER(SurfaceScale, surfaceScale) 53 DECLARE_ANIMATED_NUMBER(KernelUnitLengthX, kernelUnitLengthX) 54 DECLARE_ANIMATED_NUMBER(KernelUnitLengthY, kernelUnitLengthY) 54 55 55 56 PassRefPtr<LightSource> findLights() const; -
trunk/WebCore/svg/SVGFEDisplacementMapElement.cpp
r72474 r73024 26 26 27 27 namespace WebCore { 28 29 // Animated property definitions 30 DEFINE_ANIMATED_NUMBER(SVGFEDisplacementMapElement, SVGNames::scaleAttr, Scale, scale) 28 31 29 32 inline SVGFEDisplacementMapElement::SVGFEDisplacementMapElement(const QualifiedName& tagName, Document* document) -
trunk/WebCore/svg/SVGFEDisplacementMapElement.h
r72474 r73024 23 23 #if ENABLE(SVG) && ENABLE(FILTERS) 24 24 #include "FEDisplacementMap.h" 25 #include "SVGAnimatedNumber.h" 25 26 #include "SVGFilterPrimitiveStandardAttributes.h" 26 27 … … 40 41 virtual void synchronizeProperty(const QualifiedName&); 41 42 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); 42 43 44 // Animated property declarations 43 45 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFEDisplacementMapElement, SVGNames::inAttr, String, In1, in1) 44 46 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFEDisplacementMapElement, SVGNames::in2Attr, String, In2, in2) 45 47 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFEDisplacementMapElement, SVGNames::xChannelSelectorAttr, int, XChannelSelector, xChannelSelector) 46 48 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFEDisplacementMapElement, SVGNames::yChannelSelectorAttr, int, YChannelSelector, yChannelSelector) 47 DECLARE_ANIMATED_ STATIC_PROPERTY_NEW(SVGFEDisplacementMapElement, SVGNames::scaleAttr, float,Scale, scale)49 DECLARE_ANIMATED_NUMBER(Scale, scale) 48 50 }; 49 51 -
trunk/WebCore/svg/SVGFEGaussianBlurElement.cpp
r72474 r73024 29 29 30 30 namespace WebCore { 31 32 // Animated property definitions 33 DEFINE_ANIMATED_NUMBER_MULTIPLE_WRAPPERS(SVGFEGaussianBlurElement, SVGNames::stdDeviationAttr, stdDeviationXIdentifier(), StdDeviationX, stdDeviationX) 34 DEFINE_ANIMATED_NUMBER_MULTIPLE_WRAPPERS(SVGFEGaussianBlurElement, SVGNames::stdDeviationAttr, stdDeviationYIdentifier(), StdDeviationY, stdDeviationY) 31 35 32 36 inline SVGFEGaussianBlurElement::SVGFEGaussianBlurElement(const QualifiedName& tagName, Document* document) -
trunk/WebCore/svg/SVGFEGaussianBlurElement.h
r72474 r73024 24 24 #if ENABLE(SVG) && ENABLE(FILTERS) 25 25 #include "FEGaussianBlur.h" 26 #include "SVGAnimatedNumber.h" 26 27 #include "SVGFilterPrimitiveStandardAttributes.h" 27 28 … … 45 46 static const AtomicString& stdDeviationYIdentifier(); 46 47 48 // Animated property declarations 47 49 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFEGaussianBlurElement, SVGNames::inAttr, String, In1, in1) 48 DECLARE_ANIMATED_ STATIC_PROPERTY_MULTIPLE_WRAPPERS_NEW(SVGFEGaussianBlurElement, SVGNames::stdDeviationAttr, stdDeviationXIdentifier(), float,StdDeviationX, stdDeviationX)49 DECLARE_ANIMATED_ STATIC_PROPERTY_MULTIPLE_WRAPPERS_NEW(SVGFEGaussianBlurElement, SVGNames::stdDeviationAttr, stdDeviationYIdentifier(), float,StdDeviationY, stdDeviationY)50 DECLARE_ANIMATED_NUMBER(StdDeviationX, stdDeviationX) 51 DECLARE_ANIMATED_NUMBER(StdDeviationY, stdDeviationY) 50 52 }; 51 53 -
trunk/WebCore/svg/SVGFELightElement.cpp
r72259 r73024 31 31 32 32 namespace WebCore { 33 34 // Animated property definitions 35 DEFINE_ANIMATED_NUMBER(SVGFELightElement, SVGNames::azimuthAttr, Azimuth, azimuth) 36 DEFINE_ANIMATED_NUMBER(SVGFELightElement, SVGNames::elevationAttr, Elevation, elevation) 37 DEFINE_ANIMATED_NUMBER(SVGFELightElement, SVGNames::xAttr, X, x) 38 DEFINE_ANIMATED_NUMBER(SVGFELightElement, SVGNames::yAttr, Y, y) 39 DEFINE_ANIMATED_NUMBER(SVGFELightElement, SVGNames::zAttr, Z, z) 40 DEFINE_ANIMATED_NUMBER(SVGFELightElement, SVGNames::pointsAtXAttr, PointsAtX, pointsAtX) 41 DEFINE_ANIMATED_NUMBER(SVGFELightElement, SVGNames::pointsAtYAttr, PointsAtY, pointsAtY) 42 DEFINE_ANIMATED_NUMBER(SVGFELightElement, SVGNames::pointsAtZAttr, PointsAtZ, pointsAtZ) 43 DEFINE_ANIMATED_NUMBER(SVGFELightElement, SVGNames::specularExponentAttr, SpecularExponent, specularExponent) 44 DEFINE_ANIMATED_NUMBER(SVGFELightElement, SVGNames::limitingConeAngleAttr, LimitingConeAngle, limitingConeAngle) 33 45 34 46 SVGFELightElement::SVGFELightElement(const QualifiedName& tagName, Document* document) -
trunk/WebCore/svg/SVGFELightElement.h
r70979 r73024 25 25 #if ENABLE(SVG) && ENABLE(FILTERS) 26 26 #include "LightSource.h" 27 #include "SVGAnimated PropertyMacros.h"27 #include "SVGAnimatedNumber.h" 28 28 #include "SVGElement.h" 29 29 … … 43 43 virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0); 44 44 45 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFELightElement, SVGNames::azimuthAttr, float, Azimuth, azimuth) 46 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFELightElement, SVGNames::elevationAttr, float, Elevation, elevation) 47 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFELightElement, SVGNames::xAttr, float, X, x) 48 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFELightElement, SVGNames::yAttr, float, Y, y) 49 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFELightElement, SVGNames::zAttr, float, Z, z) 50 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFELightElement, SVGNames::pointsAtXAttr, float, PointsAtX, pointsAtX) 51 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFELightElement, SVGNames::pointsAtYAttr, float, PointsAtY, pointsAtY) 52 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFELightElement, SVGNames::pointsAtZAttr, float, PointsAtZ, pointsAtZ) 53 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFELightElement, SVGNames::specularExponentAttr, float, SpecularExponent, specularExponent) 54 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFELightElement, SVGNames::limitingConeAngleAttr, float, LimitingConeAngle, limitingConeAngle) 45 // Animated property declarations 46 DECLARE_ANIMATED_NUMBER(Azimuth, azimuth) 47 DECLARE_ANIMATED_NUMBER(Elevation, elevation) 48 DECLARE_ANIMATED_NUMBER(X, x) 49 DECLARE_ANIMATED_NUMBER(Y, y) 50 DECLARE_ANIMATED_NUMBER(Z, z) 51 DECLARE_ANIMATED_NUMBER(PointsAtX, pointsAtX) 52 DECLARE_ANIMATED_NUMBER(PointsAtY, pointsAtY) 53 DECLARE_ANIMATED_NUMBER(PointsAtZ, pointsAtZ) 54 DECLARE_ANIMATED_NUMBER(SpecularExponent, specularExponent) 55 DECLARE_ANIMATED_NUMBER(LimitingConeAngle, limitingConeAngle) 55 56 }; 56 57 -
trunk/WebCore/svg/SVGFEMorphologyElement.cpp
r72474 r73024 28 28 29 29 namespace WebCore { 30 31 // Animated property definitions 32 DEFINE_ANIMATED_NUMBER_MULTIPLE_WRAPPERS(SVGFEMorphologyElement, SVGNames::radiusAttr, radiusXIdentifier(), RadiusX, radiusX) 33 DEFINE_ANIMATED_NUMBER_MULTIPLE_WRAPPERS(SVGFEMorphologyElement, SVGNames::radiusAttr, radiusYIdentifier(), RadiusY, radiusY) 30 34 31 35 inline SVGFEMorphologyElement::SVGFEMorphologyElement(const QualifiedName& tagName, Document* document) -
trunk/WebCore/svg/SVGFEMorphologyElement.h
r72474 r73024 23 23 #if ENABLE(SVG) && ENABLE(FILTERS) 24 24 #include "FEMorphology.h" 25 #include "SVGAnimatedNumber.h" 25 26 #include "SVGFilterPrimitiveStandardAttributes.h" 26 27 … … 44 45 static const AtomicString& radiusYIdentifier(); 45 46 47 // Animated property declarations 46 48 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFEMorphologyElement, SVGNames::inAttr, String, In1, in1) 47 49 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFEMorphologyElement, SVGNames::operatorAttr, int, _operator, _operator) 48 DECLARE_ANIMATED_ STATIC_PROPERTY_MULTIPLE_WRAPPERS_NEW(SVGFEMorphologyElement, SVGNames::radiusAttr, radiusXIdentifier(), float,RadiusX, radiusX)49 DECLARE_ANIMATED_ STATIC_PROPERTY_MULTIPLE_WRAPPERS_NEW(SVGFEMorphologyElement, SVGNames::radiusAttr, radiusYIdentifier(), float,RadiusY, radiusY)50 DECLARE_ANIMATED_NUMBER(RadiusX, radiusX) 51 DECLARE_ANIMATED_NUMBER(RadiusY, radiusY) 50 52 }; 51 53 -
trunk/WebCore/svg/SVGFEOffsetElement.cpp
r72474 r73024 27 27 28 28 namespace WebCore { 29 30 // Animated property definitions 31 DEFINE_ANIMATED_NUMBER(SVGFEOffsetElement, SVGNames::dxAttr, Dx, dx) 32 DEFINE_ANIMATED_NUMBER(SVGFEOffsetElement, SVGNames::dyAttr, Dy, dy) 29 33 30 34 inline SVGFEOffsetElement::SVGFEOffsetElement(const QualifiedName& tagName, Document* document) -
trunk/WebCore/svg/SVGFEOffsetElement.h
r72474 r73024 24 24 #if ENABLE(SVG) && ENABLE(FILTERS) 25 25 #include "FEOffset.h" 26 #include "SVGAnimatedNumber.h" 26 27 #include "SVGFilterPrimitiveStandardAttributes.h" 27 28 … … 40 41 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); 41 42 43 // Animated property declarations 42 44 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFEOffsetElement, SVGNames::inAttr, String, In1, in1) 43 DECLARE_ANIMATED_ STATIC_PROPERTY_NEW(SVGFEOffsetElement, SVGNames::dxAttr, float,Dx, dx)44 DECLARE_ANIMATED_ STATIC_PROPERTY_NEW(SVGFEOffsetElement, SVGNames::dyAttr, float,Dy, dy)45 DECLARE_ANIMATED_NUMBER(Dx, dx) 46 DECLARE_ANIMATED_NUMBER(Dy, dy) 45 47 }; 46 48 -
trunk/WebCore/svg/SVGFESpecularLightingElement.cpp
r72474 r73024 32 32 33 33 namespace WebCore { 34 35 // Animated property definitions 36 DEFINE_ANIMATED_NUMBER(SVGFESpecularLightingElement, SVGNames::specularConstantAttr, SpecularConstant, specularConstant) 37 DEFINE_ANIMATED_NUMBER(SVGFESpecularLightingElement, SVGNames::specularExponentAttr, SpecularExponent, specularExponent) 38 DEFINE_ANIMATED_NUMBER(SVGFESpecularLightingElement, SVGNames::surfaceScaleAttr, SurfaceScale, surfaceScale) 39 DEFINE_ANIMATED_NUMBER_MULTIPLE_WRAPPERS(SVGFESpecularLightingElement, SVGNames::kernelUnitLengthAttr, kernelUnitLengthXIdentifier(), KernelUnitLengthX, kernelUnitLengthX) 40 DEFINE_ANIMATED_NUMBER_MULTIPLE_WRAPPERS(SVGFESpecularLightingElement, SVGNames::kernelUnitLengthAttr, kernelUnitLengthYIdentifier(), KernelUnitLengthY, kernelUnitLengthY) 34 41 35 42 inline SVGFESpecularLightingElement::SVGFESpecularLightingElement(const QualifiedName& tagName, Document* document) -
trunk/WebCore/svg/SVGFESpecularLightingElement.h
r72474 r73024 25 25 #if ENABLE(SVG) && ENABLE(FILTERS) 26 26 #include "FESpecularLighting.h" 27 #include "SVGAnimatedNumber.h" 27 28 #include "SVGFilterPrimitiveStandardAttributes.h" 28 29 … … 43 44 static const AtomicString& kernelUnitLengthYIdentifier(); 44 45 46 // Animated property declarations 45 47 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFESpecularLightingElement, SVGNames::inAttr, String, In1, in1) 46 DECLARE_ANIMATED_ STATIC_PROPERTY_NEW(SVGFESpecularLightingElement, SVGNames::specularConstantAttr, float,SpecularConstant, specularConstant)47 DECLARE_ANIMATED_ STATIC_PROPERTY_NEW(SVGFESpecularLightingElement, SVGNames::specularExponentAttr, float,SpecularExponent, specularExponent)48 DECLARE_ANIMATED_ STATIC_PROPERTY_NEW(SVGFESpecularLightingElement, SVGNames::surfaceScaleAttr, float,SurfaceScale, surfaceScale)49 DECLARE_ANIMATED_ STATIC_PROPERTY_MULTIPLE_WRAPPERS_NEW(SVGFESpecularLightingElement, SVGNames::kernelUnitLengthAttr, kernelUnitLengthXIdentifier(), float,KernelUnitLengthX, kernelUnitLengthX)50 DECLARE_ANIMATED_ STATIC_PROPERTY_MULTIPLE_WRAPPERS_NEW(SVGFESpecularLightingElement, SVGNames::kernelUnitLengthAttr, kernelUnitLengthYIdentifier(), float,KernelUnitLengthY, kernelUnitLengthY)48 DECLARE_ANIMATED_NUMBER(SpecularConstant, specularConstant) 49 DECLARE_ANIMATED_NUMBER(SpecularExponent, specularExponent) 50 DECLARE_ANIMATED_NUMBER(SurfaceScale, surfaceScale) 51 DECLARE_ANIMATED_NUMBER(KernelUnitLengthX, kernelUnitLengthX) 52 DECLARE_ANIMATED_NUMBER(KernelUnitLengthY, kernelUnitLengthY) 51 53 52 54 PassRefPtr<LightSource> findLights() const; -
trunk/WebCore/svg/SVGFETurbulenceElement.cpp
r72474 r73024 28 28 29 29 namespace WebCore { 30 31 // Animated property definitions 32 DEFINE_ANIMATED_NUMBER_MULTIPLE_WRAPPERS(SVGFETurbulenceElement, SVGNames::baseFrequencyAttr, baseFrequencyXIdentifier(), BaseFrequencyX, baseFrequencyX) 33 DEFINE_ANIMATED_NUMBER_MULTIPLE_WRAPPERS(SVGFETurbulenceElement, SVGNames::baseFrequencyAttr, baseFrequencyYIdentifier(), BaseFrequencyY, baseFrequencyY) 34 DEFINE_ANIMATED_NUMBER(SVGFETurbulenceElement, SVGNames::seedAttr, Seed, seed) 30 35 31 36 inline SVGFETurbulenceElement::SVGFETurbulenceElement(const QualifiedName& tagName, Document* document) -
trunk/WebCore/svg/SVGFETurbulenceElement.h
r72474 r73024 24 24 #if ENABLE(SVG) && ENABLE(FILTERS) 25 25 #include "FETurbulence.h" 26 #include "SVGAnimatedNumber.h" 26 27 #include "SVGFilterPrimitiveStandardAttributes.h" 27 28 … … 49 50 static const AtomicString& baseFrequencyYIdentifier(); 50 51 51 DECLARE_ANIMATED_STATIC_PROPERTY_MULTIPLE_WRAPPERS_NEW(SVGFETurbulenceElement, SVGNames::baseFrequencyAttr, baseFrequencyXIdentifier(), float, BaseFrequencyX, baseFrequencyX) 52 DECLARE_ANIMATED_STATIC_PROPERTY_MULTIPLE_WRAPPERS_NEW(SVGFETurbulenceElement, SVGNames::baseFrequencyAttr, baseFrequencyYIdentifier(), float, BaseFrequencyY, baseFrequencyY) 52 // Animated property declarations 53 DECLARE_ANIMATED_NUMBER(BaseFrequencyX, baseFrequencyX) 54 DECLARE_ANIMATED_NUMBER(BaseFrequencyY, baseFrequencyY) 53 55 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFETurbulenceElement, SVGNames::numOctavesAttr, long, NumOctaves, numOctaves) 54 DECLARE_ANIMATED_ STATIC_PROPERTY_NEW(SVGFETurbulenceElement, SVGNames::seedAttr, float,Seed, seed)56 DECLARE_ANIMATED_NUMBER(Seed, seed) 55 57 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFETurbulenceElement, SVGNames::stitchTilesAttr, int, StitchTiles, stitchTiles) 56 58 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGFETurbulenceElement, SVGNames::typeAttr, int, Type, type) -
trunk/WebCore/svg/SVGPathElement.cpp
r72518 r73024 45 45 namespace WebCore { 46 46 47 // Animated property definitions 48 DEFINE_ANIMATED_NUMBER(SVGPathElement, SVGNames::pathLengthAttr, PathLength, pathLength) 49 47 50 inline SVGPathElement::SVGPathElement(const QualifiedName& tagName, Document* document) 48 51 : SVGStyledTransformableElement(tagName, document) -
trunk/WebCore/svg/SVGPathElement.h
r72381 r73024 23 23 24 24 #if ENABLE(SVG) 25 #include "SVGAnimatedNumber.h" 25 26 #include "SVGAnimatedPathSegListPropertyTearOff.h" 26 #include "SVGAnimatedPropertyMacros.h"27 27 #include "SVGExternalResourcesRequired.h" 28 28 #include "SVGLangSpace.h" … … 106 106 virtual bool supportsMarkers() const { return true; } 107 107 108 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGPathElement, SVGNames::pathLengthAttr, float, PathLength, pathLength) 108 // Animated property declarations 109 DECLARE_ANIMATED_NUMBER(PathLength, pathLength) 109 110 110 111 // SVGExternalResourcesRequired -
trunk/WebCore/svg/SVGStopElement.cpp
r66498 r73024 32 32 33 33 namespace WebCore { 34 35 // Animated property definitions 36 DEFINE_ANIMATED_NUMBER(SVGStopElement, SVGNames::offsetAttr, Offset, offset) 34 37 35 38 inline SVGStopElement::SVGStopElement(const QualifiedName& tagName, Document* document) -
trunk/WebCore/svg/SVGStopElement.h
r70979 r73024 23 23 24 24 #if ENABLE(SVG) 25 #include "SVGAnimated PropertyMacros.h"25 #include "SVGAnimatedNumber.h" 26 26 #include "SVGStyledElement.h" 27 27 28 28 namespace WebCore { 29 29 30 31 32 30 class SVGStopElement : public SVGStyledElement { 31 public: 32 static PassRefPtr<SVGStopElement> create(const QualifiedName&, Document*); 33 33 34 34 Color stopColorIncludingOpacity() const; 35 35 36 37 36 private: 37 SVGStopElement(const QualifiedName&, Document*); 38 38 39 40 41 39 virtual void parseMappedAttribute(Attribute*); 40 virtual void svgAttributeChanged(const QualifiedName&); 41 virtual void synchronizeProperty(const QualifiedName&); 42 42 43 43 virtual bool isGradientStop() const { return true; } 44 44 45 45 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); 46 46 47 DECLARE_ANIMATED_STATIC_PROPERTY_NEW(SVGStopElement, SVGNames::offsetAttr, float, Offset, offset) 48 }; 47 // Animated property declarations 48 DECLARE_ANIMATED_NUMBER(Offset, offset) 49 }; 49 50 50 51 } // namespace WebCore
Note: See TracChangeset
for help on using the changeset viewer.