SVGForeignObjectElement.h [plain text]
#ifndef SVGForeignObjectElement_h
#define SVGForeignObjectElement_h
#include "SVGAnimatedBoolean.h"
#include "SVGAnimatedLength.h"
#include "SVGExternalResourcesRequired.h"
#include "SVGGraphicsElement.h"
#include "SVGNames.h"
#include "SVGURIReference.h"
namespace WebCore {
class SVGForeignObjectElement final : public SVGGraphicsElement,
public SVGExternalResourcesRequired {
public:
static PassRefPtr<SVGForeignObjectElement> create(const QualifiedName&, Document&);
private:
SVGForeignObjectElement(const QualifiedName&, Document&);
virtual bool isValid() const override { return SVGTests::isValid(); }
bool isSupportedAttribute(const QualifiedName&);
virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
virtual void svgAttributeChanged(const QualifiedName&) override;
virtual bool rendererIsNeeded(const RenderStyle&) override;
virtual bool childShouldCreateRenderer(const Node&) const override;
virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override;
virtual bool selfHasRelativeLengths() const override;
BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGForeignObjectElement)
DECLARE_ANIMATED_LENGTH(X, x)
DECLARE_ANIMATED_LENGTH(Y, y)
DECLARE_ANIMATED_LENGTH(Width, width)
DECLARE_ANIMATED_LENGTH(Height, height)
DECLARE_ANIMATED_STRING(Href, href)
DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired)
END_DECLARE_ANIMATED_PROPERTIES
};
NODE_TYPE_CASTS(SVGForeignObjectElement)
}
#endif