| Index: Source/core/svg/SVGClipPathElement.cpp
|
| diff --git a/Source/core/svg/SVGClipPathElement.cpp b/Source/core/svg/SVGClipPathElement.cpp
|
| index 4de9d37af7a77d7f5b95606563cd4b34c9f1efb8..335a01350485ed9d290813f2942c866ade65376c 100644
|
| --- a/Source/core/svg/SVGClipPathElement.cpp
|
| +++ b/Source/core/svg/SVGClipPathElement.cpp
|
| @@ -37,35 +37,14 @@ inline SVGClipPathElement::SVGClipPathElement(Document& document)
|
|
|
| DEFINE_NODE_FACTORY(SVGClipPathElement)
|
|
|
| -bool SVGClipPathElement::isSupportedAttribute(const QualifiedName& attrName)
|
| -{
|
| - DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
|
| - if (supportedAttributes.isEmpty())
|
| - supportedAttributes.add(SVGNames::clipPathUnitsAttr);
|
| -
|
| - return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName);
|
| -}
|
| -
|
| void SVGClipPathElement::parseAttribute(const QualifiedName& name, const AtomicString& value)
|
| {
|
| - if (!isSupportedAttribute(name)) {
|
| - SVGGraphicsElement::parseAttribute(name, value);
|
| - return;
|
| - }
|
| -
|
| - SVGParsingError parseError = NoError;
|
| -
|
| - if (name == SVGNames::clipPathUnitsAttr)
|
| - m_clipPathUnits->setBaseValueAsString(value, parseError);
|
| - else
|
| - ASSERT_NOT_REACHED();
|
| -
|
| - reportAttributeParsingError(parseError, name, value);
|
| + parseAttributeNew(name, value);
|
| }
|
|
|
| void SVGClipPathElement::svgAttributeChanged(const QualifiedName& attrName)
|
| {
|
| - if (!isSupportedAttribute(attrName)) {
|
| + if (attrName != SVGNames::clipPathUnitsAttr) {
|
| SVGGraphicsElement::svgAttributeChanged(attrName);
|
| return;
|
| }
|
|
|