| 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 , m_cachedRepeatDur(invalidCachedTime) | 185 , m_cachedRepeatDur(invalidCachedTime) |
| 186 , m_cachedRepeatCount(invalidCachedTime) | 186 , m_cachedRepeatCount(invalidCachedTime) |
| 187 , m_cachedMin(invalidCachedTime) | 187 , m_cachedMin(invalidCachedTime) |
| 188 , m_cachedMax(invalidCachedTime) | 188 , m_cachedMax(invalidCachedTime) |
| 189 { | 189 { |
| 190 resolveFirstInterval(); | 190 resolveFirstInterval(); |
| 191 } | 191 } |
| 192 | 192 |
| 193 SVGSMILElement::~SVGSMILElement() | 193 SVGSMILElement::~SVGSMILElement() |
| 194 { | 194 { |
| 195 #if !ENABLE(OILPAN) |
| 195 clearResourceAndEventBaseReferences(); | 196 clearResourceAndEventBaseReferences(); |
| 197 #endif |
| 196 smilEndEventSender().cancelEvent(this); | 198 smilEndEventSender().cancelEvent(this); |
| 197 smilBeginEventSender().cancelEvent(this); | 199 smilBeginEventSender().cancelEvent(this); |
| 198 smilRepeatEventSender().cancelEvent(this); | 200 smilRepeatEventSender().cancelEvent(this); |
| 199 smilRepeatNEventSender().cancelEvent(this); | 201 smilRepeatNEventSender().cancelEvent(this); |
| 200 clearConditions(); | 202 clearConditions(); |
| 201 if (m_timeContainer && m_targetElement && hasValidAttributeName()) | 203 if (m_timeContainer && m_targetElement && hasValidAttributeName()) |
| 202 m_timeContainer->unschedule(this, m_targetElement, m_attributeName); | 204 m_timeContainer->unschedule(this, m_targetElement, m_attributeName); |
| 203 } | 205 } |
| 204 | 206 |
| 205 void SVGSMILElement::clearResourceAndEventBaseReferences() | 207 void SVGSMILElement::clearResourceAndEventBaseReferences() |
| (...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1324 if (eventType == "repeatn") { | 1326 if (eventType == "repeatn") { |
| 1325 unsigned repeatEventCount = m_repeatEventCountList.first(); | 1327 unsigned repeatEventCount = m_repeatEventCountList.first(); |
| 1326 m_repeatEventCountList.remove(0); | 1328 m_repeatEventCountList.remove(0); |
| 1327 dispatchEvent(RepeatEvent::create(eventType, repeatEventCount)); | 1329 dispatchEvent(RepeatEvent::create(eventType, repeatEventCount)); |
| 1328 } else { | 1330 } else { |
| 1329 dispatchEvent(Event::create(eventType)); | 1331 dispatchEvent(Event::create(eventType)); |
| 1330 } | 1332 } |
| 1331 } | 1333 } |
| 1332 | 1334 |
| 1333 } | 1335 } |
| OLD | NEW |