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 Ref<SVGForeignObjectElement> create(const QualifiedName&, Document&);
private:
SVGForeignObjectElement(const QualifiedName&, Document&);
bool isValid() const override { return SVGTests::isValid(); }
static bool isSupportedAttribute(const QualifiedName&);
void parseAttribute(const QualifiedName&, const AtomicString&) override;
void svgAttributeChanged(const QualifiedName&) override;
bool rendererIsNeeded(const RenderStyle&) override;
bool childShouldCreateRenderer(const Node&) const override;
RenderPtr<RenderElement> createElementRenderer(RenderStyle&&, const RenderTreePosition&) override;
bool selfHasRelativeLengths() const override { return true; }
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_OVERRIDE(ExternalResourcesRequired, externalResourcesRequired)
END_DECLARE_ANIMATED_PROPERTIES
};
}
#endif