SVGFEMergeNodeElement.cpp [plain text]
#include "config.h"
#include "SVGFEMergeNodeElement.h"
#include "RenderSVGResource.h"
#include "SVGFilterElement.h"
#include "SVGFilterPrimitiveStandardAttributes.h"
#include "SVGNames.h"
namespace WebCore {
DEFINE_ANIMATED_STRING(SVGFEMergeNodeElement, SVGNames::inAttr, In1, in1)
BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGFEMergeNodeElement)
REGISTER_LOCAL_ANIMATED_PROPERTY(in1)
END_REGISTER_ANIMATED_PROPERTIES
inline SVGFEMergeNodeElement::SVGFEMergeNodeElement(const QualifiedName& tagName, Document& document)
: SVGElement(tagName, document)
{
ASSERT(hasTagName(SVGNames::feMergeNodeTag));
registerAnimatedPropertiesForSVGFEMergeNodeElement();
}
Ref<SVGFEMergeNodeElement> SVGFEMergeNodeElement::create(const QualifiedName& tagName, Document& document)
{
return adoptRef(*new SVGFEMergeNodeElement(tagName, document));
}
void SVGFEMergeNodeElement::parseAttribute(const QualifiedName& name, const AtomicString& value)
{
if (name == SVGNames::inAttr) {
setIn1BaseValue(value);
return;
}
SVGElement::parseAttribute(name, value);
}
void SVGFEMergeNodeElement::svgAttributeChanged(const QualifiedName& attrName)
{
if (attrName == SVGNames::inAttr) {
InstanceInvalidationGuard guard(*this);
invalidateFilterPrimitiveParent(this);
return;
}
SVGElement::svgAttributeChanged(attrName);
}
}