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

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

Issue 183143002: Remove SVGAnimatedType (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Missed one rename. Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/svg/SVGAnimateElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 13 matching lines...) Expand all
24 #define SVGAnimateElement_h 24 #define SVGAnimateElement_h
25 25
26 #include "SVGNames.h" 26 #include "SVGNames.h"
27 #include "core/svg/SVGAnimatedTypeAnimator.h" 27 #include "core/svg/SVGAnimatedTypeAnimator.h"
28 #include "core/svg/SVGAnimationElement.h" 28 #include "core/svg/SVGAnimationElement.h"
29 #include "wtf/OwnPtr.h" 29 #include "wtf/OwnPtr.h"
30 30
31 namespace WebCore { 31 namespace WebCore {
32 32
33 class SVGAnimatedProperty; 33 class SVGAnimatedProperty;
34 class SVGAnimatedType;
35 class SVGAnimatedTypeAnimator; 34 class SVGAnimatedTypeAnimator;
36 35
37 class SVGAnimateElement : public SVGAnimationElement { 36 class SVGAnimateElement : public SVGAnimationElement {
38 public: 37 public:
39 static PassRefPtr<SVGAnimateElement> create(Document&); 38 static PassRefPtr<SVGAnimateElement> create(Document&);
40 virtual ~SVGAnimateElement(); 39 virtual ~SVGAnimateElement();
41 40
42 AnimatedPropertyType determineAnimatedPropertyType(SVGElement*) const; 41 AnimatedPropertyType determineAnimatedPropertyType(SVGElement*) const;
43 42
44 protected: 43 protected:
(...skipping 15 matching lines...) Expand all
60 59
61 AnimatedPropertyType m_animatedPropertyType; 60 AnimatedPropertyType m_animatedPropertyType;
62 61
63 private: 62 private:
64 void resetAnimatedPropertyType(); 63 void resetAnimatedPropertyType();
65 SVGAnimatedTypeAnimator* ensureAnimator(); 64 SVGAnimatedTypeAnimator* ensureAnimator();
66 bool animatedPropertyTypeSupportsAddition() const; 65 bool animatedPropertyTypeSupportsAddition() const;
67 66
68 virtual bool hasValidAttributeType() OVERRIDE; 67 virtual bool hasValidAttributeType() OVERRIDE;
69 68
70 OwnPtr<SVGAnimatedType> m_fromType; 69 RefPtr<NewSVGPropertyBase> m_fromProperty;
71 OwnPtr<SVGAnimatedType> m_toType; 70 RefPtr<NewSVGPropertyBase> m_toProperty;
72 OwnPtr<SVGAnimatedType> m_toAtEndOfDurationType; 71 RefPtr<NewSVGPropertyBase> m_toAtEndOfDurationProperty;
73 OwnPtr<SVGAnimatedType> m_animatedType; 72 RefPtr<NewSVGPropertyBase> m_animatedProperty;
74 73
75 SVGElementAnimatedPropertyList m_animatedProperties; 74 SVGElementAnimatedPropertyList m_animatedProperties;
76 OwnPtr<SVGAnimatedTypeAnimator> m_animator; 75 OwnPtr<SVGAnimatedTypeAnimator> m_animator;
77 }; 76 };
78 77
79 inline bool isSVGAnimateElement(const Node& node) 78 inline bool isSVGAnimateElement(const Node& node)
80 { 79 {
81 return node.hasTagName(SVGNames::animateTag) 80 return node.hasTagName(SVGNames::animateTag)
82 || node.hasTagName(SVGNames::animateTransformTag) 81 || node.hasTagName(SVGNames::animateTransformTag)
83 || node.hasTagName(SVGNames::setTag); 82 || node.hasTagName(SVGNames::setTag);
84 } 83 }
85 84
86 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGAnimateElement); 85 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGAnimateElement);
87 86
88 } // namespace WebCore 87 } // namespace WebCore
89 88
90 #endif // SVGAnimateElement_h 89 #endif // SVGAnimateElement_h
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/svg/SVGAnimateElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698