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

Unified Diff: third_party/WebKit/Source/core/svg/SVGAnimateElement.h

Issue 2384013002: Push animation value 'inherit' handling into SVGAnimateElement (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7c984979d1feb92e791519597e7289adefeda2c2..8f6d95ebf547cce0d06ff82381a75ae84e9b318a 100644
--- a/third_party/WebKit/Source/core/svg/SVGAnimateElement.h
+++ b/third_party/WebKit/Source/core/svg/SVGAnimateElement.h
@@ -32,6 +32,10 @@
namespace blink {
+// If we have 'inherit' as animation value, we need to grab the value
+// during the animation since the value can be animated itself.
+enum AnimatedPropertyValueType { RegularPropertyValue, InheritValue };
+
class CORE_EXPORT SVGAnimateElement : public SVGAnimationElement {
DEFINE_WRAPPERTYPEINFO();
@@ -78,12 +82,18 @@ class CORE_EXPORT SVGAnimateElement : public SVGAnimationElement {
bool hasValidAttributeType() override;
+ SVGPropertyBase* adjustForInheritance(SVGPropertyBase*,
+ AnimatedPropertyValueType) const;
+
Member<SVGPropertyBase> m_fromProperty;
Member<SVGPropertyBase> m_toProperty;
Member<SVGPropertyBase> m_toAtEndOfDurationProperty;
Member<SVGPropertyBase> m_animatedProperty;
SVGAnimatedTypeAnimator m_animator;
+
+ AnimatedPropertyValueType m_fromPropertyValueType;
+ AnimatedPropertyValueType m_toPropertyValueType;
};
inline bool isSVGAnimateElement(const SVGElement& element) {
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698