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

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

Issue 9568017: Merge 108134 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/963/
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 virtual bool isAdditive() const = 0; 105 virtual bool isAdditive() const = 0;
106 virtual void resetToBaseValue(const String&) = 0; 106 virtual void resetToBaseValue(const String&) = 0;
107 virtual void applyResultsToTarget() = 0; 107 virtual void applyResultsToTarget() = 0;
108 108
109 protected: 109 protected:
110 void addBeginTime(SMILTime eventTime, SMILTime endTime); 110 void addBeginTime(SMILTime eventTime, SMILTime endTime);
111 void addEndTime(SMILTime eventTime, SMILTime endTime); 111 void addEndTime(SMILTime eventTime, SMILTime endTime);
112 112
113 void setInactive() { m_activeState = Inactive; } 113 void setInactive() { m_activeState = Inactive; }
114 114
115 // Sub-classes may need to take action when the target is changed.
116 virtual void targetElementDidChange(SVGElement*) { }
117
115 private: 118 private:
116 virtual void startedActiveInterval() = 0; 119 virtual void startedActiveInterval() = 0;
117 virtual void updateAnimation(float percent, unsigned repeat, SVGSMILElement* resultElement) = 0; 120 virtual void updateAnimation(float percent, unsigned repeat, SVGSMILElement* resultElement) = 0;
118 virtual void endedActiveInterval() = 0; 121 virtual void endedActiveInterval() = 0;
119 122
120 enum BeginOrEnd { 123 enum BeginOrEnd {
121 Begin, 124 Begin,
122 End 125 End
123 }; 126 };
124 127
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 mutable SMILTime m_cachedMin; 224 mutable SMILTime m_cachedMin;
222 mutable SMILTime m_cachedMax; 225 mutable SMILTime m_cachedMax;
223 226
224 friend class ConditionEventListener; 227 friend class ConditionEventListener;
225 }; 228 };
226 229
227 } 230 }
228 231
229 #endif // ENABLE(SVG) 232 #endif // ENABLE(SVG)
230 #endif // SVGSMILElement_h 233 #endif // SVGSMILElement_h
231
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