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