| OLD | NEW |
| 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 Loading... |
| 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 |
| 153 enum RestartedInterval { |
| 154 DidNotRestartInterval, |
| 155 DidRestartInterval |
| 156 }; |
| 157 |
| 158 RestartedInterval maybeRestartInterval(SMILTime elapsed); |
| 153 void beginListChanged(SMILTime eventTime); | 159 void beginListChanged(SMILTime eventTime); |
| 154 void endListChanged(SMILTime eventTime); | 160 void endListChanged(SMILTime eventTime); |
| 155 | 161 |
| 156 // This represents conditions on elements begin or end list that need to be
resolved on runtime | 162 // 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" ... /> | 163 // for example <animate begin="otherElement.begin + 8s; button.click" ... /> |
| 158 struct Condition { | 164 struct Condition { |
| 159 enum Type { | 165 enum Type { |
| 160 EventBase, | 166 EventBase, |
| 161 Syncbase, | 167 Syncbase, |
| 162 AccessKey | 168 AccessKey |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 { | 250 { |
| 245 return node.hasTagName(SVGNames::setTag) || node.hasTagName(SVGNames::animat
eTag) || node.hasTagName(SVGNames::animateMotionTag) | 251 return node.hasTagName(SVGNames::setTag) || node.hasTagName(SVGNames::animat
eTag) || node.hasTagName(SVGNames::animateMotionTag) |
| 246 || node.hasTagName(SVGNames::animateTransformTag) || node.hasTagName((SV
GNames::discardTag)); | 252 || node.hasTagName(SVGNames::animateTransformTag) || node.hasTagName((SV
GNames::discardTag)); |
| 247 } | 253 } |
| 248 | 254 |
| 249 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGSMILElement); | 255 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGSMILElement); |
| 250 | 256 |
| 251 } | 257 } |
| 252 | 258 |
| 253 #endif // SVGSMILElement_h | 259 #endif // SVGSMILElement_h |
| OLD | NEW |