From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/svg/SVGFEMergeNodeElement.cpp | 36 ++++------------------------ 1 file changed, 5 insertions(+), 31 deletions(-) (limited to 'Source/WebCore/svg/SVGFEMergeNodeElement.cpp') 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::create(const QualifiedName& tagName, Document& document) -{ - return adoptRef(new SVGFEMergeNodeElement(tagName, document)); -} - -bool SVGFEMergeNodeElement::isSupportedAttribute(const QualifiedName& attrName) +Ref SVGFEMergeNodeElement::create(const QualifiedName& tagName, Document& document) { - DEFINE_STATIC_LOCAL(HashSet, supportedAttributes, ()); - if (supportedAttributes.isEmpty()) - supportedAttributes.add(SVGNames::inAttr); - return supportedAttributes.contains(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) -- cgit v1.2.1