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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 bool isFrozen() const; | 102 bool isFrozen() const; |
103 | 103 |
104 unsigned documentOrderIndex() const { return m_documentOrderIndex; } | 104 unsigned documentOrderIndex() const { return m_documentOrderIndex; } |
105 void setDocumentOrderIndex(unsigned index) { m_documentOrderIndex = index; } | 105 void setDocumentOrderIndex(unsigned index) { m_documentOrderIndex = index; } |
106 | 106 |
107 virtual bool isAdditive() const = 0; | 107 virtual bool isAdditive() const = 0; |
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(); |
| 113 bool hasConditionsConnected() const { return m_conditionsConnected; } |
| 114 |
112 protected: | 115 protected: |
113 void addBeginTime(SMILTime eventTime, SMILTime endTime, SMILTimeWithOrigin::
Origin = SMILTimeWithOrigin::ParserOrigin); | 116 void addBeginTime(SMILTime eventTime, SMILTime endTime, SMILTimeWithOrigin::
Origin = SMILTimeWithOrigin::ParserOrigin); |
114 void addEndTime(SMILTime eventTime, SMILTime endTime, SMILTimeWithOrigin::Or
igin = SMILTimeWithOrigin::ParserOrigin); | 117 void addEndTime(SMILTime eventTime, SMILTime endTime, SMILTimeWithOrigin::Or
igin = SMILTimeWithOrigin::ParserOrigin); |
115 | 118 |
116 void setInactive() { m_activeState = Inactive; } | 119 void setInactive() { m_activeState = Inactive; } |
117 | 120 |
118 // Sub-classes may need to take action when the target is changed. | 121 // Sub-classes may need to take action when the target is changed. |
119 virtual void setTargetElement(SVGElement*); | 122 virtual void setTargetElement(SVGElement*); |
120 virtual void setAttributeName(const QualifiedName&); | 123 virtual void setAttributeName(const QualifiedName&); |
121 | 124 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 String m_name; | 163 String m_name; |
161 SMILTime m_offset; | 164 SMILTime m_offset; |
162 int m_repeats; | 165 int m_repeats; |
163 RefPtr<Element> m_syncbase; | 166 RefPtr<Element> m_syncbase; |
164 RefPtr<ConditionEventListener> m_eventListener; | 167 RefPtr<ConditionEventListener> m_eventListener; |
165 }; | 168 }; |
166 bool parseCondition(const String&, BeginOrEnd beginOrEnd); | 169 bool parseCondition(const String&, BeginOrEnd beginOrEnd); |
167 void parseBeginOrEnd(const String&, BeginOrEnd beginOrEnd); | 170 void parseBeginOrEnd(const String&, BeginOrEnd beginOrEnd); |
168 Element* eventBaseFor(const Condition&); | 171 Element* eventBaseFor(const Condition&); |
169 | 172 |
170 void connectConditions(); | |
171 void disconnectConditions(); | 173 void disconnectConditions(); |
172 | 174 |
173 // Event base timing | 175 // Event base timing |
174 void handleConditionEvent(Event*, Condition*); | 176 void handleConditionEvent(Event*, Condition*); |
175 | 177 |
176 // Syncbase timing | 178 // Syncbase timing |
177 enum NewOrExistingInterval { | 179 enum NewOrExistingInterval { |
178 NewInterval, | 180 NewInterval, |
179 ExistingInterval | 181 ExistingInterval |
180 }; | 182 }; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 | 239 |
238 inline SVGSMILElement* toSVGSMILElement(Element* element) | 240 inline SVGSMILElement* toSVGSMILElement(Element* element) |
239 { | 241 { |
240 ASSERT_WITH_SECURITY_IMPLICATION(!element || SVGSMILElement::isSMILElement(e
lement)); | 242 ASSERT_WITH_SECURITY_IMPLICATION(!element || SVGSMILElement::isSMILElement(e
lement)); |
241 return static_cast<SVGSMILElement*>(element); | 243 return static_cast<SVGSMILElement*>(element); |
242 } | 244 } |
243 | 245 |
244 } | 246 } |
245 | 247 |
246 #endif // SVGSMILElement_h | 248 #endif // SVGSMILElement_h |
OLD | NEW |