| 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 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 if (m_cachedRepeatCount != invalidCachedTime) | 767 if (m_cachedRepeatCount != invalidCachedTime) |
| 768 return m_cachedRepeatCount; | 768 return m_cachedRepeatCount; |
| 769 SMILTime computedRepeatCount = SMILTime::unresolved(); | 769 SMILTime computedRepeatCount = SMILTime::unresolved(); |
| 770 const AtomicString& value = fastGetAttribute(SVGNames::repeatCountAttr); | 770 const AtomicString& value = fastGetAttribute(SVGNames::repeatCountAttr); |
| 771 if (!value.isNull()) { | 771 if (!value.isNull()) { |
| 772 DEFINE_STATIC_LOCAL(const AtomicString, indefiniteValue, ("indefinite",
AtomicString::ConstructFromLiteral)); | 772 DEFINE_STATIC_LOCAL(const AtomicString, indefiniteValue, ("indefinite",
AtomicString::ConstructFromLiteral)); |
| 773 if (value == indefiniteValue) { | 773 if (value == indefiniteValue) { |
| 774 computedRepeatCount = SMILTime::indefinite(); | 774 computedRepeatCount = SMILTime::indefinite(); |
| 775 } else { | 775 } else { |
| 776 bool ok; | 776 bool ok; |
| 777 double result = value.string().toDouble(&ok); | 777 double result = value.toDouble(&ok); |
| 778 if (ok && result > 0) | 778 if (ok && result > 0) |
| 779 computedRepeatCount = result; | 779 computedRepeatCount = result; |
| 780 } | 780 } |
| 781 } | 781 } |
| 782 m_cachedRepeatCount = computedRepeatCount; | 782 m_cachedRepeatCount = computedRepeatCount; |
| 783 return m_cachedRepeatCount; | 783 return m_cachedRepeatCount; |
| 784 } | 784 } |
| 785 | 785 |
| 786 SMILTime SVGSMILElement::maxValue() const | 786 SMILTime SVGSMILElement::maxValue() const |
| 787 { | 787 { |
| (...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1362 #if ENABLE(OILPAN) | 1362 #if ENABLE(OILPAN) |
| 1363 visitor->trace(m_targetElement); | 1363 visitor->trace(m_targetElement); |
| 1364 visitor->trace(m_timeContainer); | 1364 visitor->trace(m_timeContainer); |
| 1365 visitor->trace(m_conditions); | 1365 visitor->trace(m_conditions); |
| 1366 visitor->trace(m_syncBaseDependents); | 1366 visitor->trace(m_syncBaseDependents); |
| 1367 #endif | 1367 #endif |
| 1368 SVGElement::trace(visitor); | 1368 SVGElement::trace(visitor); |
| 1369 } | 1369 } |
| 1370 | 1370 |
| 1371 } | 1371 } |
| OLD | NEW |