summaryrefslogtreecommitdiffstats
path: root/WebCore/svg/animation/SVGSMILElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/svg/animation/SVGSMILElement.cpp')
-rw-r--r--WebCore/svg/animation/SVGSMILElement.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/WebCore/svg/animation/SVGSMILElement.cpp b/WebCore/svg/animation/SVGSMILElement.cpp
index a90b444..6757fee 100644
--- a/WebCore/svg/animation/SVGSMILElement.cpp
+++ b/WebCore/svg/animation/SVGSMILElement.cpp
@@ -528,7 +528,8 @@ SMILTime SVGSMILElement::repeatDur() const
return m_cachedRepeatDur;
const AtomicString& value = getAttribute(SVGNames::repeatDurAttr);
SMILTime clockValue = parseClockValue(value);
- return m_cachedRepeatDur = clockValue < 0 ? SMILTime::unresolved() : clockValue;
+ m_cachedRepeatDur = clockValue <= 0 ? SMILTime::unresolved() : clockValue;
+ return m_cachedRepeatDur;
}
// So a count is not really a time but let just all pretend we did not notice.