| Index: Source/core/svg/SVGStopElement.cpp
|
| diff --git a/Source/core/svg/SVGStopElement.cpp b/Source/core/svg/SVGStopElement.cpp
|
| index 42e3fd5c78766515333ceb58cccd22a3a267da3e..74234325ecc6b561db0cb24118793d5111706d0b 100644
|
| --- a/Source/core/svg/SVGStopElement.cpp
|
| +++ b/Source/core/svg/SVGStopElement.cpp
|
| @@ -36,49 +36,23 @@ inline SVGStopElement::SVGStopElement(Document& document)
|
|
|
| DEFINE_NODE_FACTORY(SVGStopElement)
|
|
|
| -bool SVGStopElement::isSupportedAttribute(const QualifiedName& attrName)
|
| -{
|
| - DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ());
|
| - if (supportedAttributes.isEmpty())
|
| - supportedAttributes.add(SVGNames::offsetAttr);
|
| - return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName);
|
| -}
|
| -
|
| void SVGStopElement::parseAttribute(const QualifiedName& name, const AtomicString& value)
|
| {
|
| - if (!isSupportedAttribute(name)) {
|
| - SVGElement::parseAttribute(name, value);
|
| - return;
|
| - }
|
| -
|
| - SVGParsingError parseError = NoError;
|
| -
|
| - if (name == SVGNames::offsetAttr)
|
| - m_offset->setBaseValueAsString(value, parseError);
|
| - else
|
| - ASSERT_NOT_REACHED();
|
| -
|
| - reportAttributeParsingError(parseError, name, value);
|
| + parseAttributeNew(name, value);
|
| }
|
|
|
| void SVGStopElement::svgAttributeChanged(const QualifiedName& attrName)
|
| {
|
| - if (!isSupportedAttribute(attrName)) {
|
| - SVGElement::svgAttributeChanged(attrName);
|
| - return;
|
| - }
|
| -
|
| - SVGElement::InvalidationGuard invalidationGuard(this);
|
| + if (attrName == SVGNames::offsetAttr) {
|
| + SVGElement::InvalidationGuard invalidationGuard(this);
|
|
|
| - if (!renderer())
|
| - return;
|
| + if (renderer())
|
| + RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer());
|
|
|
| - if (attrName == SVGNames::offsetAttr) {
|
| - RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer());
|
| return;
|
| }
|
|
|
| - ASSERT_NOT_REACHED();
|
| + SVGElement::svgAttributeChanged(attrName);
|
| }
|
|
|
| RenderObject* SVGStopElement::createRenderer(RenderStyle*)
|
|
|