SVGFEMergeNodeElement.cpp [plain text]
#include "config.h"
#include "SVGFEMergeNodeElement.h"
#include "RenderSVGResource.h"
#include "SVGFilterElement.h"
#include "SVGFilterPrimitiveStandardAttributes.h"
#include "SVGNames.h"
#include <wtf/IsoMallocInlines.h>
namespace WebCore {
WTF_MAKE_ISO_ALLOCATED_IMPL(SVGFEMergeNodeElement);
inline SVGFEMergeNodeElement::SVGFEMergeNodeElement(const QualifiedName& tagName, Document& document)
: SVGElement(tagName, document)
{
ASSERT(hasTagName(SVGNames::feMergeNodeTag));
static std::once_flag onceFlag;
std::call_once(onceFlag, [] {
PropertyRegistry::registerProperty<SVGNames::inAttr, &SVGFEMergeNodeElement::m_in1>();
});
}
Ref<SVGFEMergeNodeElement> SVGFEMergeNodeElement::create(const QualifiedName& tagName, Document& document)
{
return adoptRef(*new SVGFEMergeNodeElement(tagName, document));
}
void SVGFEMergeNodeElement::parseAttribute(const QualifiedName& name, const AtomString& value)
{
if (name == SVGNames::inAttr) {
m_in1->setBaseValInternal(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);
}
}