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

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

Issue 141013017: Make sure begin and end events are dispatched for back-to-back intervals (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 Begin, 142 Begin,
143 End 143 End
144 }; 144 };
145 145
146 SMILTime findInstanceTime(BeginOrEnd, SMILTime minimumTime, bool equalsMinim umOK) const; 146 SMILTime findInstanceTime(BeginOrEnd, SMILTime minimumTime, bool equalsMinim umOK) const;
147 void resolveFirstInterval(); 147 void resolveFirstInterval();
148 bool resolveNextInterval(); 148 bool resolveNextInterval();
149 void resolveInterval(bool first, SMILTime& beginResult, SMILTime& endResult) const; 149 void resolveInterval(bool first, SMILTime& beginResult, SMILTime& endResult) const;
150 SMILTime resolveActiveEnd(SMILTime resolvedBegin, SMILTime resolvedEnd) cons t; 150 SMILTime resolveActiveEnd(SMILTime resolvedBegin, SMILTime resolvedEnd) cons t;
151 SMILTime repeatingDuration() const; 151 SMILTime repeatingDuration() const;
152 void checkRestart(SMILTime elapsed); 152 bool checkRestart(SMILTime elapsed);
153 void beginListChanged(SMILTime eventTime); 153 void beginListChanged(SMILTime eventTime);
154 void endListChanged(SMILTime eventTime); 154 void endListChanged(SMILTime eventTime);
155 155
156 // This represents conditions on elements begin or end list that need to be resolved on runtime 156 // This represents conditions on elements begin or end list that need to be resolved on runtime
157 // for example <animate begin="otherElement.begin + 8s; button.click" ... /> 157 // for example <animate begin="otherElement.begin + 8s; button.click" ... />
158 struct Condition { 158 struct Condition {
159 enum Type { 159 enum Type {
160 EventBase, 160 EventBase,
161 Syncbase, 161 Syncbase,
162 AccessKey 162 AccessKey
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 { 244 {
245 return node.hasTagName(SVGNames::setTag) || node.hasTagName(SVGNames::animat eTag) || node.hasTagName(SVGNames::animateMotionTag) 245 return node.hasTagName(SVGNames::setTag) || node.hasTagName(SVGNames::animat eTag) || node.hasTagName(SVGNames::animateMotionTag)
246 || node.hasTagName(SVGNames::animateTransformTag) || node.hasTagName((SV GNames::discardTag)); 246 || node.hasTagName(SVGNames::animateTransformTag) || node.hasTagName((SV GNames::discardTag));
247 } 247 }
248 248
249 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGSMILElement); 249 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGSMILElement);
250 250
251 } 251 }
252 252
253 #endif // SVGSMILElement_h 253 #endif // SVGSMILElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698