Index: third_party/WebKit/Source/core/svg/SVGElement.cpp |
diff --git a/third_party/WebKit/Source/core/svg/SVGElement.cpp b/third_party/WebKit/Source/core/svg/SVGElement.cpp |
index db5921d7b030d58460d78559eb56e462338662b0..846f72c07ff5910c8414f80f4d3dac13153c2cc8 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGElement.cpp |
+++ b/third_party/WebKit/Source/core/svg/SVGElement.cpp |
@@ -744,9 +744,17 @@ bool SVGElement::isAnimatableCSSProperty(const QualifiedName& attrName) { |
} |
bool SVGElement::isPresentationAttribute(const QualifiedName& name) const { |
+ if (const SVGAnimatedPropertyBase* property = propertyFromAttribute(name)) |
+ return property->hasPresentationAttributeMapping(); |
return cssPropertyIdForSVGAttributeName(name) > 0; |
} |
+bool SVGElement::isPresentationAttributeWithSVGDOM( |
+ const QualifiedName& name) const { |
+ const SVGAnimatedPropertyBase* property = propertyFromAttribute(name); |
+ return property && property->hasPresentationAttributeMapping(); |
+} |
+ |
void SVGElement::collectStyleForPresentationAttribute( |
const QualifiedName& name, |
const AtomicString& value, |