| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 | 138 |
| 139 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } | 139 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } |
| 140 | 140 |
| 141 enum BeginOrEnd { | 141 enum BeginOrEnd { |
| 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 void resolveNextInterval(bool notifyDependents); | 148 bool resolveNextInterval(bool notifyDependents); |
| 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 void 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 { |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 246 |
| 247 inline SVGSMILElement* toSVGSMILElement(Element* element) | 247 inline SVGSMILElement* toSVGSMILElement(Element* element) |
| 248 { | 248 { |
| 249 ASSERT_WITH_SECURITY_IMPLICATION(!element || SVGSMILElement::isSMILElement(e
lement)); | 249 ASSERT_WITH_SECURITY_IMPLICATION(!element || SVGSMILElement::isSMILElement(e
lement)); |
| 250 return static_cast<SVGSMILElement*>(element); | 250 return static_cast<SVGSMILElement*>(element); |
| 251 } | 251 } |
| 252 | 252 |
| 253 } | 253 } |
| 254 | 254 |
| 255 #endif // SVGSMILElement_h | 255 #endif // SVGSMILElement_h |
| OLD | NEW |