| Index: Source/core/svg/SVGSVGElement.cpp
|
| diff --git a/Source/core/svg/SVGSVGElement.cpp b/Source/core/svg/SVGSVGElement.cpp
|
| index 11d7dc0736544a95bd4ba88f7d6ac7a38052438a..9671e4e281a70dac3c44ee36fa77f9a435585e0f 100644
|
| --- a/Source/core/svg/SVGSVGElement.cpp
|
| +++ b/Source/core/svg/SVGSVGElement.cpp
|
| @@ -153,6 +153,7 @@ float SVGSVGElement::currentScale() const
|
|
|
| void SVGSVGElement::setCurrentScale(float scale)
|
| {
|
| + ASSERT(std::isfinite(scale));
|
| if (!inDocument() || !isOutermostSVGSVGElement())
|
| return;
|
|
|
| @@ -578,8 +579,7 @@ float SVGSVGElement::getCurrentTime() const
|
|
|
| void SVGSVGElement::setCurrentTime(float seconds)
|
| {
|
| - if (std::isnan(seconds))
|
| - return;
|
| + ASSERT(std::isfinite(seconds));
|
| seconds = max(seconds, 0.0f);
|
| m_timeContainer->setElapsed(seconds);
|
| }
|
|
|