| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 SVGSMILElement::Condition::Condition(Type type, BeginOrEnd beginOrEnd, const Str
ing& baseID, const String& name, SMILTime offset, int repeat) | 170 SVGSMILElement::Condition::Condition(Type type, BeginOrEnd beginOrEnd, const Str
ing& baseID, const String& name, SMILTime offset, int repeat) |
| 171 : m_type(type) | 171 : m_type(type) |
| 172 , m_beginOrEnd(beginOrEnd) | 172 , m_beginOrEnd(beginOrEnd) |
| 173 , m_baseID(baseID) | 173 , m_baseID(baseID) |
| 174 , m_name(name) | 174 , m_name(name) |
| 175 , m_offset(offset) | 175 , m_offset(offset) |
| 176 , m_repeat(repeat) | 176 , m_repeat(repeat) |
| 177 { | 177 { |
| 178 } | 178 } |
| 179 | 179 |
| 180 ConditionEventListener* SVGSMILElement::Condition::eventListener() const | |
| 181 { | |
| 182 return m_eventListener.get(); | |
| 183 } | |
| 184 | |
| 185 SVGSMILElement::SVGSMILElement(const QualifiedName& tagName, Document& doc) | 180 SVGSMILElement::SVGSMILElement(const QualifiedName& tagName, Document& doc) |
| 186 : SVGElement(tagName, doc) | 181 : SVGElement(tagName, doc) |
| 187 , SVGTests(this) | 182 , SVGTests(this) |
| 188 , m_attributeName(anyQName()) | 183 , m_attributeName(anyQName()) |
| 189 , m_targetElement(nullptr) | 184 , m_targetElement(nullptr) |
| 190 , m_syncBaseConditionsConnected(false) | 185 , m_syncBaseConditionsConnected(false) |
| 191 , m_hasEndEventConditions(false) | 186 , m_hasEndEventConditions(false) |
| 192 , m_isWaitingForFirstInterval(true) | 187 , m_isWaitingForFirstInterval(true) |
| 193 , m_isScheduled(false) | 188 , m_isScheduled(false) |
| 194 , m_interval(SMILInterval(SMILTime::unresolved(), SMILTime::unresolved())) | 189 , m_interval(SMILInterval(SMILTime::unresolved(), SMILTime::unresolved())) |
| (...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1289 | 1284 |
| 1290 SMILTime elapsed = this->elapsed(); | 1285 SMILTime elapsed = this->elapsed(); |
| 1291 if (elapsed.isUnresolved()) | 1286 if (elapsed.isUnresolved()) |
| 1292 return; | 1287 return; |
| 1293 if (condition->beginOrEnd() == Begin) | 1288 if (condition->beginOrEnd() == Begin) |
| 1294 addBeginTime(elapsed, elapsed + condition->offset()); | 1289 addBeginTime(elapsed, elapsed + condition->offset()); |
| 1295 else | 1290 else |
| 1296 addEndTime(elapsed, elapsed + condition->offset()); | 1291 addEndTime(elapsed, elapsed + condition->offset()); |
| 1297 } | 1292 } |
| 1298 | 1293 |
| 1299 SMILTimeContainer* SVGSMILElement::timeContainer() const | |
| 1300 { | |
| 1301 return m_timeContainer.get(); | |
| 1302 } | |
| 1303 | |
| 1304 void SVGSMILElement::beginByLinkActivation() | 1294 void SVGSMILElement::beginByLinkActivation() |
| 1305 { | 1295 { |
| 1306 SMILTime elapsed = this->elapsed(); | 1296 SMILTime elapsed = this->elapsed(); |
| 1307 if (elapsed.isUnresolved()) | 1297 if (elapsed.isUnresolved()) |
| 1308 return; | 1298 return; |
| 1309 addBeginTime(elapsed, elapsed); | 1299 addBeginTime(elapsed, elapsed); |
| 1310 } | 1300 } |
| 1311 | 1301 |
| 1312 void SVGSMILElement::endedActiveInterval() | 1302 void SVGSMILElement::endedActiveInterval() |
| 1313 { | 1303 { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1373 visitor->trace(m_targetElement); | 1363 visitor->trace(m_targetElement); |
| 1374 visitor->trace(m_timeContainer); | 1364 visitor->trace(m_timeContainer); |
| 1375 visitor->trace(m_conditions); | 1365 visitor->trace(m_conditions); |
| 1376 visitor->trace(m_syncBaseDependents); | 1366 visitor->trace(m_syncBaseDependents); |
| 1377 #endif | 1367 #endif |
| 1378 SVGElement::trace(visitor); | 1368 SVGElement::trace(visitor); |
| 1379 SVGTests::trace(visitor); | 1369 SVGTests::trace(visitor); |
| 1380 } | 1370 } |
| 1381 | 1371 |
| 1382 } // namespace blink | 1372 } // namespace blink |
| OLD | NEW |