SVGLinearGradientElement.h [plain text]
#pragma once
#include "SVGAnimatedLength.h"
#include "SVGGradientElement.h"
#include "SVGNames.h"
namespace WebCore {
struct LinearGradientAttributes;
class SVGLinearGradientElement final : public SVGGradientElement {
public:
static Ref<SVGLinearGradientElement> create(const QualifiedName&, Document&);
bool collectGradientAttributes(LinearGradientAttributes&);
private:
SVGLinearGradientElement(const QualifiedName&, Document&);
static bool isSupportedAttribute(const QualifiedName&);
void parseAttribute(const QualifiedName&, const AtomicString&) override;
void svgAttributeChanged(const QualifiedName&) override;
RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) override;
bool selfHasRelativeLengths() const override;
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGLinearGradientElement)
DECLARE_ANIMATED_LENGTH(X1, x1)
DECLARE_ANIMATED_LENGTH(Y1, y1)
DECLARE_ANIMATED_LENGTH(X2, x2)
DECLARE_ANIMATED_LENGTH(Y2, y2)
END_DECLARE_ANIMATED_PROPERTIES
};
}