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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 , m_beginOrEnd(beginOrEnd) | 164 , m_beginOrEnd(beginOrEnd) |
165 , m_baseID(baseID) | 165 , m_baseID(baseID) |
166 , m_name(name) | 166 , m_name(name) |
167 , m_offset(offset) | 167 , m_offset(offset) |
168 , m_repeat(repeat) | 168 , m_repeat(repeat) |
169 { | 169 { |
170 } | 170 } |
171 | 171 |
172 SVGSMILElement::SVGSMILElement(const QualifiedName& tagName, Document& doc) | 172 SVGSMILElement::SVGSMILElement(const QualifiedName& tagName, Document& doc) |
173 : SVGElement(tagName, doc) | 173 : SVGElement(tagName, doc) |
| 174 , SVGTests(this) |
174 , m_attributeName(anyQName()) | 175 , m_attributeName(anyQName()) |
175 , m_targetElement(nullptr) | 176 , m_targetElement(nullptr) |
176 , m_syncBaseConditionsConnected(false) | 177 , m_syncBaseConditionsConnected(false) |
177 , m_hasEndEventConditions(false) | 178 , m_hasEndEventConditions(false) |
178 , m_isWaitingForFirstInterval(true) | 179 , m_isWaitingForFirstInterval(true) |
179 , m_isScheduled(false) | 180 , m_isScheduled(false) |
180 , m_interval(SMILInterval(SMILTime::unresolved(), SMILTime::unresolved())) | 181 , m_interval(SMILInterval(SMILTime::unresolved(), SMILTime::unresolved())) |
181 , m_previousIntervalBegin(SMILTime::unresolved()) | 182 , m_previousIntervalBegin(SMILTime::unresolved()) |
182 , m_activeState(Inactive) | 183 , m_activeState(Inactive) |
183 , m_lastPercent(0) | 184 , m_lastPercent(0) |
184 , m_lastRepeat(0) | 185 , m_lastRepeat(0) |
185 , m_nextProgressTime(0) | 186 , m_nextProgressTime(0) |
186 , m_documentOrderIndex(0) | 187 , m_documentOrderIndex(0) |
187 , m_cachedDur(invalidCachedTime) | 188 , m_cachedDur(invalidCachedTime) |
188 , m_cachedRepeatDur(invalidCachedTime) | 189 , m_cachedRepeatDur(invalidCachedTime) |
189 , m_cachedRepeatCount(invalidCachedTime) | 190 , m_cachedRepeatCount(invalidCachedTime) |
190 , m_cachedMin(invalidCachedTime) | 191 , m_cachedMin(invalidCachedTime) |
191 , m_cachedMax(invalidCachedTime) | 192 , m_cachedMax(invalidCachedTime) |
192 { | 193 { |
193 SVGTests::initialize(this); | |
194 | |
195 resolveFirstInterval(); | 194 resolveFirstInterval(); |
196 } | 195 } |
197 | 196 |
198 SVGSMILElement::~SVGSMILElement() | 197 SVGSMILElement::~SVGSMILElement() |
199 { | 198 { |
200 #if !ENABLE(OILPAN) | 199 #if !ENABLE(OILPAN) |
201 clearResourceAndEventBaseReferences(); | 200 clearResourceAndEventBaseReferences(); |
202 #endif | 201 #endif |
203 smilEndEventSender().cancelEvent(this); | 202 smilEndEventSender().cancelEvent(this); |
204 smilBeginEventSender().cancelEvent(this); | 203 smilBeginEventSender().cancelEvent(this); |
(...skipping 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1372 visitor->trace(m_targetElement); | 1371 visitor->trace(m_targetElement); |
1373 visitor->trace(m_timeContainer); | 1372 visitor->trace(m_timeContainer); |
1374 visitor->trace(m_conditions); | 1373 visitor->trace(m_conditions); |
1375 visitor->trace(m_syncBaseDependents); | 1374 visitor->trace(m_syncBaseDependents); |
1376 #endif | 1375 #endif |
1377 SVGElement::trace(visitor); | 1376 SVGElement::trace(visitor); |
1378 SVGTests::trace(visitor); | 1377 SVGTests::trace(visitor); |
1379 } | 1378 } |
1380 | 1379 |
1381 } // namespace blink | 1380 } // namespace blink |
OLD | NEW |