Index: Source/WebCore/svg/SVGAnimationElement.cpp |
=================================================================== |
--- Source/WebCore/svg/SVGAnimationElement.cpp (revision 132837) |
+++ Source/WebCore/svg/SVGAnimationElement.cpp (working copy) |
@@ -39,6 +39,7 @@ |
#include "SVGNames.h" |
#include "SVGParserUtilities.h" |
#include "SVGStyledElement.h" |
+#include <wtf/MathExtras.h> |
namespace WebCore { |
@@ -240,6 +241,8 @@ |
void SVGAnimationElement::beginElementAt(float offset) |
{ |
+ if (isnan(offset)) |
+ return; |
SMILTime elapsed = this->elapsed(); |
addBeginTime(elapsed, elapsed + offset, SMILTimeWithOrigin::ScriptOrigin); |
} |
@@ -251,6 +254,8 @@ |
void SVGAnimationElement::endElementAt(float offset) |
{ |
+ if (isnan(offset)) |
+ return; |
SMILTime elapsed = this->elapsed(); |
addEndTime(elapsed, elapsed + offset, SMILTimeWithOrigin::ScriptOrigin); |
} |