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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 virtual void resetAnimatedType() = 0; | 108 virtual void resetAnimatedType() = 0; |
109 virtual void clearAnimatedType(SVGElement* targetElement) = 0; | 109 virtual void clearAnimatedType(SVGElement* targetElement) = 0; |
110 virtual void applyResultsToTarget() = 0; | 110 virtual void applyResultsToTarget() = 0; |
111 | 111 |
112 void connectSyncBaseConditions(); | 112 void connectSyncBaseConditions(); |
113 void connectEventBaseConditions(); | 113 void connectEventBaseConditions(); |
114 | 114 |
115 void dispatchPendingEvent(SMILEventSender*); | 115 void dispatchPendingEvent(SMILEventSender*); |
116 void dispatchRepeatEvents(unsigned); | 116 void dispatchRepeatEvents(unsigned); |
117 | 117 |
| 118 virtual bool isSVGDiscardElement() const { return false; } |
| 119 |
118 protected: | 120 protected: |
119 void addBeginTime(SMILTime eventTime, SMILTime endTime, SMILTimeWithOrigin::
Origin = SMILTimeWithOrigin::ParserOrigin); | 121 void addBeginTime(SMILTime eventTime, SMILTime endTime, SMILTimeWithOrigin::
Origin = SMILTimeWithOrigin::ParserOrigin); |
120 void addEndTime(SMILTime eventTime, SMILTime endTime, SMILTimeWithOrigin::Or
igin = SMILTimeWithOrigin::ParserOrigin); | 122 void addEndTime(SMILTime eventTime, SMILTime endTime, SMILTimeWithOrigin::Or
igin = SMILTimeWithOrigin::ParserOrigin); |
121 | 123 |
122 void setInactive() { m_activeState = Inactive; } | 124 void setInactive() { m_activeState = Inactive; } |
123 | 125 |
124 // Sub-classes may need to take action when the target is changed. | 126 // Sub-classes may need to take action when the target is changed. |
125 virtual void setTargetElement(SVGElement*); | 127 virtual void setTargetElement(SVGElement*); |
126 virtual void setAttributeName(const QualifiedName&); | 128 virtual void setAttributeName(const QualifiedName&); |
127 | 129 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 mutable SMILTime m_cachedRepeatCount; | 235 mutable SMILTime m_cachedRepeatCount; |
234 mutable SMILTime m_cachedMin; | 236 mutable SMILTime m_cachedMin; |
235 mutable SMILTime m_cachedMax; | 237 mutable SMILTime m_cachedMax; |
236 | 238 |
237 friend class ConditionEventListener; | 239 friend class ConditionEventListener; |
238 }; | 240 }; |
239 | 241 |
240 inline bool isSVGSMILElement(const Node& node) | 242 inline bool isSVGSMILElement(const Node& node) |
241 { | 243 { |
242 return node.hasTagName(SVGNames::setTag) || node.hasTagName(SVGNames::animat
eTag) || node.hasTagName(SVGNames::animateMotionTag) | 244 return node.hasTagName(SVGNames::setTag) || node.hasTagName(SVGNames::animat
eTag) || node.hasTagName(SVGNames::animateMotionTag) |
243 || node.hasTagName(SVGNames::animateTransformTag) || node.hasTagName(SVG
Names::animateColorTag); | 245 || node.hasTagName(SVGNames::animateTransformTag) || node.hasTagName(SVG
Names::animateColorTag) || node.hasTagName((SVGNames::discardTag)); |
244 } | 246 } |
245 | 247 |
246 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGSMILElement); | 248 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(SVGSMILElement); |
247 | 249 |
248 } | 250 } |
249 | 251 |
250 #endif // SVGSMILElement_h | 252 #endif // SVGSMILElement_h |
OLD | NEW |