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 925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
936 return false; | 936 return false; |
937 } | 937 } |
938 | 938 |
939 SMILTime SVGSMILElement::nextProgressTime() const | 939 SMILTime SVGSMILElement::nextProgressTime() const |
940 { | 940 { |
941 return m_nextProgressTime; | 941 return m_nextProgressTime; |
942 } | 942 } |
943 | 943 |
944 void SVGSMILElement::beginListChanged(SMILTime eventTime) | 944 void SVGSMILElement::beginListChanged(SMILTime eventTime) |
945 { | 945 { |
| 946 if (!m_isWaitingForFirstInterval && m_activeState != Active && this->restart
() == RestartNever) { |
| 947 m_nextProgressTime = SMILTime::unresolved(); |
| 948 m_interval.begin = SMILTime::unresolved(); |
| 949 m_interval.end = SMILTime::unresolved(); |
| 950 return; |
| 951 } |
| 952 |
946 if (m_isWaitingForFirstInterval) | 953 if (m_isWaitingForFirstInterval) |
947 resolveFirstInterval(); | 954 resolveFirstInterval(); |
948 else { | 955 else { |
949 SMILTime newBegin = findInstanceTime(Begin, eventTime, true); | 956 SMILTime newBegin = findInstanceTime(Begin, eventTime, true); |
950 if (newBegin.isFinite() && (m_interval.end <= eventTime || newBegin < m_
interval.begin)) { | 957 if (newBegin.isFinite() && (m_interval.end <= eventTime || newBegin < m_
interval.begin)) { |
951 // Begin time changed, re-resolve the interval. | 958 // Begin time changed, re-resolve the interval. |
952 SMILTime oldBegin = m_interval.begin; | 959 SMILTime oldBegin = m_interval.begin; |
953 m_interval.end = eventTime; | 960 m_interval.end = eventTime; |
954 m_interval = resolveInterval(NextInterval); | 961 m_interval = resolveInterval(NextInterval); |
955 ASSERT(!m_interval.begin.isUnresolved()); | 962 ASSERT(!m_interval.begin.isUnresolved()); |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1353 visitor->trace(m_targetElement); | 1360 visitor->trace(m_targetElement); |
1354 visitor->trace(m_timeContainer); | 1361 visitor->trace(m_timeContainer); |
1355 visitor->trace(m_conditions); | 1362 visitor->trace(m_conditions); |
1356 visitor->trace(m_syncBaseDependents); | 1363 visitor->trace(m_syncBaseDependents); |
1357 #endif | 1364 #endif |
1358 SVGElement::trace(visitor); | 1365 SVGElement::trace(visitor); |
1359 SVGTests::trace(visitor); | 1366 SVGTests::trace(visitor); |
1360 } | 1367 } |
1361 | 1368 |
1362 } // namespace blink | 1369 } // namespace blink |
OLD | NEW |