Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGAnimateElement.h

Issue 2623513005: Introduce Element::AttributeModificationParams (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. All rights reserved.
5 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 bool calculateFromAndByValues(const String& fromString, 66 bool calculateFromAndByValues(const String& fromString,
67 const String& byString) final; 67 const String& byString) final;
68 void calculateAnimatedValue(float percentage, 68 void calculateAnimatedValue(float percentage,
69 unsigned repeatCount, 69 unsigned repeatCount,
70 SVGSMILElement* resultElement) final; 70 SVGSMILElement* resultElement) final;
71 void applyResultsToTarget() final; 71 void applyResultsToTarget() final;
72 float calculateDistance(const String& fromString, 72 float calculateDistance(const String& fromString,
73 const String& toString) final; 73 const String& toString) final;
74 bool isAdditive() final; 74 bool isAdditive() final;
75 75
76 void parseAttribute(const QualifiedName&, 76 void parseAttribute(const AttributeModificationParams&) override;
77 const AtomicString&,
78 const AtomicString&) override;
79 void svgAttributeChanged(const QualifiedName&) override; 77 void svgAttributeChanged(const QualifiedName&) override;
80 78
81 void setTargetElement(SVGElement*) final; 79 void setTargetElement(SVGElement*) final;
82 void setAttributeName(const QualifiedName&); 80 void setAttributeName(const QualifiedName&);
83 81
84 enum AttributeType { AttributeTypeCSS, AttributeTypeXML, AttributeTypeAuto }; 82 enum AttributeType { AttributeTypeCSS, AttributeTypeXML, AttributeTypeAuto };
85 AttributeType getAttributeType() const { return m_attributeType; } 83 AttributeType getAttributeType() const { return m_attributeType; }
86 84
87 FRIEND_TEST_ALL_PREFIXES(UnsafeSVGAttributeSanitizationTest, 85 FRIEND_TEST_ALL_PREFIXES(UnsafeSVGAttributeSanitizationTest,
88 stringsShouldNotSupportAddition); 86 stringsShouldNotSupportAddition);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 return element.hasTagName(SVGNames::animateTag) || 135 return element.hasTagName(SVGNames::animateTag) ||
138 element.hasTagName(SVGNames::animateTransformTag) || 136 element.hasTagName(SVGNames::animateTransformTag) ||
139 element.hasTagName(SVGNames::setTag); 137 element.hasTagName(SVGNames::setTag);
140 } 138 }
141 139
142 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGAnimateElement); 140 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGAnimateElement);
143 141
144 } // namespace blink 142 } // namespace blink
145 143
146 #endif // SVGAnimateElement_h 144 #endif // SVGAnimateElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/TextControlElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698