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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 virtual void setAttributeName(const QualifiedName&); | 129 virtual void setAttributeName(const QualifiedName&); |
130 | 130 |
131 private: | 131 private: |
132 void buildPendingResource(); | 132 void buildPendingResource(); |
133 void clearResourceReferences(); | 133 void clearResourceReferences(); |
134 | 134 |
135 virtual void startedActiveInterval() = 0; | 135 virtual void startedActiveInterval() = 0; |
136 void endedActiveInterval(); | 136 void endedActiveInterval(); |
137 virtual void updateAnimation(float percent, unsigned repeat, SVGSMILElement*
resultElement) = 0; | 137 virtual void updateAnimation(float percent, unsigned repeat, SVGSMILElement*
resultElement) = 0; |
138 | 138 |
139 virtual bool rendererIsNeeded(const NodeRenderingContext&) 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 void resolveNextInterval(bool notifyDependents); |
149 void resolveInterval(bool first, SMILTime& beginResult, SMILTime& endResult)
const; | 149 void resolveInterval(bool first, SMILTime& beginResult, SMILTime& endResult)
const; |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 | 245 |
246 inline SVGSMILElement* toSVGSMILElement(Element* element) | 246 inline SVGSMILElement* toSVGSMILElement(Element* element) |
247 { | 247 { |
248 ASSERT_WITH_SECURITY_IMPLICATION(!element || SVGSMILElement::isSMILElement(e
lement)); | 248 ASSERT_WITH_SECURITY_IMPLICATION(!element || SVGSMILElement::isSMILElement(e
lement)); |
249 return static_cast<SVGSMILElement*>(element); | 249 return static_cast<SVGSMILElement*>(element); |
250 } | 250 } |
251 | 251 |
252 } | 252 } |
253 | 253 |
254 #endif // SVGSMILElement_h | 254 #endif // SVGSMILElement_h |
OLD | NEW |