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 1292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1303 ->postTask(BLINK_FROM_HERE, | 1303 ->postTask(BLINK_FROM_HERE, |
1304 WTF::bind(&SVGSMILElement::dispatchPendingEvent, | 1304 WTF::bind(&SVGSMILElement::dispatchPendingEvent, |
1305 wrapPersistent(this), eventType)); | 1305 wrapPersistent(this), eventType)); |
1306 } | 1306 } |
1307 | 1307 |
1308 void SVGSMILElement::dispatchPendingEvent(const AtomicString& eventType) { | 1308 void SVGSMILElement::dispatchPendingEvent(const AtomicString& eventType) { |
1309 DCHECK(eventType == EventTypeNames::endEvent || | 1309 DCHECK(eventType == EventTypeNames::endEvent || |
1310 eventType == EventTypeNames::beginEvent || | 1310 eventType == EventTypeNames::beginEvent || |
1311 eventType == EventTypeNames::repeatEvent || eventType == "repeatn"); | 1311 eventType == EventTypeNames::repeatEvent || eventType == "repeatn"); |
1312 if (eventType == "repeatn") { | 1312 if (eventType == "repeatn") { |
1313 unsigned repeatEventCount = m_repeatEventCountList.first(); | 1313 unsigned repeatEventCount = m_repeatEventCountList.front(); |
1314 m_repeatEventCountList.remove(0); | 1314 m_repeatEventCountList.remove(0); |
1315 dispatchEvent(RepeatEvent::create(eventType, repeatEventCount)); | 1315 dispatchEvent(RepeatEvent::create(eventType, repeatEventCount)); |
1316 } else { | 1316 } else { |
1317 dispatchEvent(Event::create(eventType)); | 1317 dispatchEvent(Event::create(eventType)); |
1318 } | 1318 } |
1319 } | 1319 } |
1320 | 1320 |
1321 bool SVGSMILElement::hasValidTarget() { | 1321 bool SVGSMILElement::hasValidTarget() { |
1322 return targetElement() && targetElement()->inActiveDocument(); | 1322 return targetElement() && targetElement()->inActiveDocument(); |
1323 } | 1323 } |
(...skipping 28 matching lines...) Expand all Loading... |
1352 DEFINE_TRACE(SVGSMILElement) { | 1352 DEFINE_TRACE(SVGSMILElement) { |
1353 visitor->trace(m_targetElement); | 1353 visitor->trace(m_targetElement); |
1354 visitor->trace(m_timeContainer); | 1354 visitor->trace(m_timeContainer); |
1355 visitor->trace(m_conditions); | 1355 visitor->trace(m_conditions); |
1356 visitor->trace(m_syncBaseDependents); | 1356 visitor->trace(m_syncBaseDependents); |
1357 SVGElement::trace(visitor); | 1357 SVGElement::trace(visitor); |
1358 SVGTests::trace(visitor); | 1358 SVGTests::trace(visitor); |
1359 } | 1359 } |
1360 | 1360 |
1361 } // namespace blink | 1361 } // namespace blink |
OLD | NEW |