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