SVGClipPathElement.h [plain text]
#ifndef SVGClipPathElement_h
#define SVGClipPathElement_h
#include "SVGAnimatedBoolean.h"
#include "SVGAnimatedEnumeration.h"
#include "SVGExternalResourcesRequired.h"
#include "SVGGraphicsElement.h"
#include "SVGUnitTypes.h"
namespace WebCore {
class RenderObject;
class SVGClipPathElement final : public SVGGraphicsElement,
public SVGExternalResourcesRequired {
public:
static PassRefPtr<SVGClipPathElement> create(const QualifiedName&, Document&);
private:
SVGClipPathElement(const QualifiedName&, Document&);
virtual bool isValid() const override { return SVGTests::isValid(); }
virtual bool supportsFocus() const override { return false; }
virtual bool needsPendingResourceHandling() const override { return false; }
bool isSupportedAttribute(const QualifiedName&);
virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
virtual void svgAttributeChanged(const QualifiedName&) override;
virtual void childrenChanged(const ChildChange&) override;
virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override;
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGClipPathElement)
DECLARE_ANIMATED_ENUMERATION(ClipPathUnits, clipPathUnits, SVGUnitTypes::SVGUnitType)
DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired)
END_DECLARE_ANIMATED_PROPERTIES
};
NODE_TYPE_CASTS(SVGClipPathElement)
}
#endif