SVGFELightElement.h [plain text]
#pragma once
#include "LightSource.h"
#include "SVGAnimatedNumber.h"
#include "SVGElement.h"
namespace WebCore {
class SVGFELightElement : public SVGElement {
public:
virtual Ref<LightSource> lightSource() const = 0;
static SVGFELightElement* findLightElement(const SVGElement*);
static RefPtr<LightSource> findLightSource(const SVGElement*);
protected:
SVGFELightElement(const QualifiedName&, Document&);
bool rendererIsNeeded(const RenderStyle&) override { return false; }
private:
void parseAttribute(const QualifiedName&, const AtomicString&) override;
void svgAttributeChanged(const QualifiedName&) override;
void childrenChanged(const ChildChange&) override;
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFELightElement)
DECLARE_ANIMATED_NUMBER(Azimuth, azimuth)
DECLARE_ANIMATED_NUMBER(Elevation, elevation)
DECLARE_ANIMATED_NUMBER(X, x)
DECLARE_ANIMATED_NUMBER(Y, y)
DECLARE_ANIMATED_NUMBER(Z, z)
DECLARE_ANIMATED_NUMBER(PointsAtX, pointsAtX)
DECLARE_ANIMATED_NUMBER(PointsAtY, pointsAtY)
DECLARE_ANIMATED_NUMBER(PointsAtZ, pointsAtZ)
DECLARE_ANIMATED_NUMBER(SpecularExponent, specularExponent)
DECLARE_ANIMATED_NUMBER(LimitingConeAngle, limitingConeAngle)
END_DECLARE_ANIMATED_PROPERTIES
};
}