diff options
Diffstat (limited to 'Source/WebCore/svg/SVGFEMergeNodeElement.cpp')
-rw-r--r-- | Source/WebCore/svg/SVGFEMergeNodeElement.cpp | 36 |
1 files changed, 5 insertions, 31 deletions
diff --git a/Source/WebCore/svg/SVGFEMergeNodeElement.cpp b/Source/WebCore/svg/SVGFEMergeNodeElement.cpp index 0290c3783..48511f26e 100644 --- a/Source/WebCore/svg/SVGFEMergeNodeElement.cpp +++ b/Source/WebCore/svg/SVGFEMergeNodeElement.cpp @@ -19,14 +19,9 @@ */ #include "config.h" - -#if ENABLE(SVG) && ENABLE(FILTERS) #include "SVGFEMergeNodeElement.h" -#include "Attribute.h" -#include "RenderObject.h" #include "RenderSVGResource.h" -#include "SVGElementInstance.h" #include "SVGFilterElement.h" #include "SVGFilterPrimitiveStandardAttributes.h" #include "SVGNames.h" @@ -47,51 +42,30 @@ inline SVGFEMergeNodeElement::SVGFEMergeNodeElement(const QualifiedName& tagName registerAnimatedPropertiesForSVGFEMergeNodeElement(); } -PassRefPtr<SVGFEMergeNodeElement> SVGFEMergeNodeElement::create(const QualifiedName& tagName, Document& document) -{ - return adoptRef(new SVGFEMergeNodeElement(tagName, document)); -} - -bool SVGFEMergeNodeElement::isSupportedAttribute(const QualifiedName& attrName) +Ref<SVGFEMergeNodeElement> SVGFEMergeNodeElement::create(const QualifiedName& tagName, Document& document) { - DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); - if (supportedAttributes.isEmpty()) - supportedAttributes.add(SVGNames::inAttr); - return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName); + return adoptRef(*new SVGFEMergeNodeElement(tagName, document)); } void SVGFEMergeNodeElement::parseAttribute(const QualifiedName& name, const AtomicString& value) { - if (!isSupportedAttribute(name)) { - SVGElement::parseAttribute(name, value); - return; - } - if (name == SVGNames::inAttr) { setIn1BaseValue(value); return; } - ASSERT_NOT_REACHED(); + SVGElement::parseAttribute(name, value); } void SVGFEMergeNodeElement::svgAttributeChanged(const QualifiedName& attrName) { - if (!isSupportedAttribute(attrName)) { - SVGElement::svgAttributeChanged(attrName); - return; - } - - SVGElementInstance::InvalidationGuard invalidationGuard(this); - if (attrName == SVGNames::inAttr) { + InstanceInvalidationGuard guard(*this); invalidateFilterPrimitiveParent(this); return; } - ASSERT_NOT_REACHED(); + SVGElement::svgAttributeChanged(attrName); } } - -#endif // ENABLE(SVG) |