| Index: third_party/WebKit/Source/core/svg/SVGAnimateElement.h
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGAnimateElement.h b/third_party/WebKit/Source/core/svg/SVGAnimateElement.h
|
| index 816363f85471dd64954ef30d68774f95e2575e8c..0aecbddc5902b67ceb15230f4f1e21622e0f6ff1 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGAnimateElement.h
|
| +++ b/third_party/WebKit/Source/core/svg/SVGAnimateElement.h
|
| @@ -71,9 +71,17 @@ class CORE_EXPORT SVGAnimateElement : public SVGAnimationElement {
|
| const String& toString) final;
|
| bool isAdditive() final;
|
|
|
| + void parseAttribute(const QualifiedName&,
|
| + const AtomicString&,
|
| + const AtomicString&) override;
|
| + void svgAttributeChanged(const QualifiedName&) override;
|
| +
|
| void setTargetElement(SVGElement*) final;
|
| void setAttributeName(const QualifiedName&) final;
|
|
|
| + enum AttributeType { AttributeTypeCSS, AttributeTypeXML, AttributeTypeAuto };
|
| + AttributeType getAttributeType() const { return m_attributeType; }
|
| +
|
| FRIEND_TEST_ALL_PREFIXES(UnsafeSVGAttributeSanitizationTest,
|
| stringsShouldNotSupportAddition);
|
|
|
| @@ -91,6 +99,12 @@ class CORE_EXPORT SVGAnimateElement : public SVGAnimationElement {
|
| SVGElement* targetElement,
|
| const QualifiedName& attributeName);
|
|
|
| + void setAttributeType(const AtomicString&);
|
| +
|
| + void checkInvalidCSSAttributeType();
|
| + bool hasInvalidCSSAttributeType() const {
|
| + return m_hasInvalidCSSAttributeType;
|
| + }
|
| bool hasValidAttributeType() override;
|
|
|
| SVGPropertyBase* adjustForInheritance(SVGPropertyBase*,
|
| @@ -105,6 +119,8 @@ class CORE_EXPORT SVGAnimateElement : public SVGAnimationElement {
|
|
|
| AnimatedPropertyValueType m_fromPropertyValueType;
|
| AnimatedPropertyValueType m_toPropertyValueType;
|
| + AttributeType m_attributeType;
|
| + bool m_hasInvalidCSSAttributeType;
|
| };
|
|
|
| inline bool isSVGAnimateElement(const SVGElement& element) {
|
|
|