SVGDefsElement.cpp [plain text]
#include "config.h"
#include "SVGDefsElement.h"
#include "RenderSVGHiddenContainer.h"
#include "SVGNames.h"
namespace WebCore {
DEFINE_ANIMATED_BOOLEAN(SVGDefsElement, SVGNames::externalResourcesRequiredAttr, ExternalResourcesRequired, externalResourcesRequired)
BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGDefsElement)
REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired)
REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement)
END_REGISTER_ANIMATED_PROPERTIES
inline SVGDefsElement::SVGDefsElement(const QualifiedName& tagName, Document& document)
: SVGGraphicsElement(tagName, document)
{
ASSERT(hasTagName(SVGNames::defsTag));
registerAnimatedPropertiesForSVGDefsElement();
}
Ref<SVGDefsElement> SVGDefsElement::create(const QualifiedName& tagName, Document& document)
{
return adoptRef(*new SVGDefsElement(tagName, document));
}
bool SVGDefsElement::isValid() const
{
return SVGTests::isValid();
}
RenderPtr<RenderElement> SVGDefsElement::createElementRenderer(Ref<RenderStyle>&& style, const RenderTreePosition&)
{
return createRenderer<RenderSVGHiddenContainer>(*this, WTF::move(style));
}
}