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

Side by Side Diff: Source/WebCore/svg/animation/SVGSMILElement.h

Issue 9569016: Merge 108134 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual void parseMappedAttribute(Attribute*); 47 virtual void parseMappedAttribute(Attribute*);
48 virtual void attributeChanged(Attribute*, bool preserveDecls); 48 virtual void attributeChanged(Attribute*, bool preserveDecls);
49 virtual void insertedIntoDocument(); 49 virtual void insertedIntoDocument();
50 virtual void removedFromDocument(); 50 virtual void removedFromDocument();
51 51
52 virtual bool hasValidAttributeType() = 0; 52 virtual bool hasValidAttributeType() = 0;
53 53
54 SMILTimeContainer* timeContainer() const { return m_timeContainer.get(); } 54 SMILTimeContainer* timeContainer() const { return m_timeContainer.get(); }
55 55
56 SVGElement* targetElement(); 56 SVGElement* targetElement();
57 void resetTargetElement() { m_targetElement = 0; } 57 void resetTargetElement();
58 const QualifiedName& attributeName() const { return m_attributeName; } 58 const QualifiedName& attributeName() const { return m_attributeName; }
59 59
60 void beginByLinkActivation(); 60 void beginByLinkActivation();
61 61
62 enum Restart { 62 enum Restart {
63 RestartAlways, 63 RestartAlways,
64 RestartWhenNotActive, 64 RestartWhenNotActive,
65 RestartNever 65 RestartNever
66 }; 66 };
67 67
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 virtual bool isAdditive() const = 0; 107 virtual bool isAdditive() const = 0;
108 virtual void resetToBaseValue(const String&) = 0; 108 virtual void resetToBaseValue(const String&) = 0;
109 virtual void applyResultsToTarget() = 0; 109 virtual void applyResultsToTarget() = 0;
110 110
111 protected: 111 protected:
112 void addBeginTime(SMILTime eventTime, SMILTime endTime); 112 void addBeginTime(SMILTime eventTime, SMILTime endTime);
113 void addEndTime(SMILTime eventTime, SMILTime endTime); 113 void addEndTime(SMILTime eventTime, SMILTime endTime);
114 114
115 void setInactive() { m_activeState = Inactive; } 115 void setInactive() { m_activeState = Inactive; }
116 116
117 // Sub-classes may need to take action when the target is changed.
118 virtual void targetElementDidChange(SVGElement*) { }
119
117 private: 120 private:
118 virtual void startedActiveInterval() = 0; 121 virtual void startedActiveInterval() = 0;
119 virtual void updateAnimation(float percent, unsigned repeat, SVGSMILElement* resultElement) = 0; 122 virtual void updateAnimation(float percent, unsigned repeat, SVGSMILElement* resultElement) = 0;
120 virtual void endedActiveInterval() = 0; 123 virtual void endedActiveInterval() = 0;
121 124
122 enum BeginOrEnd { 125 enum BeginOrEnd {
123 Begin, 126 Begin,
124 End 127 End
125 }; 128 };
126 129
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 mutable SMILTime m_cachedMin; 226 mutable SMILTime m_cachedMin;
224 mutable SMILTime m_cachedMax; 227 mutable SMILTime m_cachedMax;
225 228
226 friend class ConditionEventListener; 229 friend class ConditionEventListener;
227 }; 230 };
228 231
229 } 232 }
230 233
231 #endif // ENABLE(SVG) 234 #endif // ENABLE(SVG)
232 #endif // SVGSMILElement_h 235 #endif // SVGSMILElement_h
233
OLDNEW
« no previous file with comments | « Source/WebCore/svg/SVGAnimatedTypeAnimator.h ('k') | Source/WebCore/svg/animation/SVGSMILElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698