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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 195 |
196 Type getType() const { return m_type; } | 196 Type getType() const { return m_type; } |
197 BeginOrEnd getBeginOrEnd() const { return m_beginOrEnd; } | 197 BeginOrEnd getBeginOrEnd() const { return m_beginOrEnd; } |
198 const AtomicString& name() const { return m_name; } | 198 const AtomicString& name() const { return m_name; } |
199 SMILTime offset() const { return m_offset; } | 199 SMILTime offset() const { return m_offset; } |
200 int repeat() const { return m_repeat; } | 200 int repeat() const { return m_repeat; } |
201 | 201 |
202 void connectSyncBase(SVGSMILElement&); | 202 void connectSyncBase(SVGSMILElement&); |
203 void disconnectSyncBase(SVGSMILElement&); | 203 void disconnectSyncBase(SVGSMILElement&); |
204 bool syncBaseEquals(SVGSMILElement& timedElement) const { | 204 bool syncBaseEquals(SVGSMILElement& timedElement) const { |
205 return m_syncBase == timedElement; | 205 return m_baseElement == timedElement; |
206 } | 206 } |
207 | 207 |
208 void connectEventBase(SVGSMILElement&); | 208 void connectEventBase(SVGSMILElement&); |
209 void disconnectEventBase(SVGSMILElement&); | 209 void disconnectEventBase(SVGSMILElement&); |
210 | 210 |
211 private: | 211 private: |
212 Condition(Type, | 212 Condition(Type, |
213 BeginOrEnd, | 213 BeginOrEnd, |
214 const AtomicString& baseID, | 214 const AtomicString& baseID, |
215 const AtomicString& name, | 215 const AtomicString& name, |
216 SMILTime offset, | 216 SMILTime offset, |
217 int repeat); | 217 int repeat); |
218 | 218 |
219 SVGElement* lookupEventBase(SVGSMILElement&) const; | 219 SVGElement* lookupEventBase(SVGSMILElement&) const; |
220 | 220 |
221 Type m_type; | 221 Type m_type; |
222 BeginOrEnd m_beginOrEnd; | 222 BeginOrEnd m_beginOrEnd; |
223 AtomicString m_baseID; | 223 AtomicString m_baseID; |
224 AtomicString m_name; | 224 AtomicString m_name; |
225 SMILTime m_offset; | 225 SMILTime m_offset; |
226 int m_repeat; | 226 int m_repeat; |
227 Member<SVGSMILElement> m_syncBase; | 227 Member<SVGElement> m_baseElement; |
228 Member<ConditionEventListener> m_eventListener; | 228 Member<ConditionEventListener> m_eventListener; |
229 }; | 229 }; |
230 bool parseCondition(const String&, BeginOrEnd beginOrEnd); | 230 bool parseCondition(const String&, BeginOrEnd beginOrEnd); |
231 void parseBeginOrEnd(const String&, BeginOrEnd beginOrEnd); | 231 void parseBeginOrEnd(const String&, BeginOrEnd beginOrEnd); |
232 | 232 |
233 void disconnectSyncBaseConditions(); | 233 void disconnectSyncBaseConditions(); |
234 void disconnectEventBaseConditions(); | 234 void disconnectEventBaseConditions(); |
235 | 235 |
236 void notifyDependentsIntervalChanged(); | 236 void notifyDependentsIntervalChanged(); |
237 void createInstanceTimesFromSyncbase(SVGSMILElement& syncbase); | 237 void createInstanceTimesFromSyncbase(SVGSMILElement& syncbase); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 element.hasTagName(SVGNames::animateMotionTag) || | 294 element.hasTagName(SVGNames::animateMotionTag) || |
295 element.hasTagName(SVGNames::animateTransformTag) || | 295 element.hasTagName(SVGNames::animateTransformTag) || |
296 element.hasTagName((SVGNames::discardTag)); | 296 element.hasTagName((SVGNames::discardTag)); |
297 } | 297 } |
298 | 298 |
299 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGSMILElement); | 299 DEFINE_SVGELEMENT_TYPE_CASTS_WITH_FUNCTION(SVGSMILElement); |
300 | 300 |
301 } // namespace blink | 301 } // namespace blink |
302 | 302 |
303 #endif // SVGSMILElement_h | 303 #endif // SVGSMILElement_h |
OLD | NEW |