Commit 2c23f283 authored by aroben@apple.com's avatar aroben@apple.com

Windows build fix

        Same as before, but for fabs/fabsf.

        * svg/SVGAnimateTransformElement.cpp:
        (WebCore::SVGAnimateTransformElement::calculateDistance): Changed to
        use fabsf and removed narrowPrecisionToFloat.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@32206 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 3b900a47
2008-04-18 Adam Roben <aroben@apple.com>
Windows build fix
Same as before, but for fabs/fabsf.
* svg/SVGAnimateTransformElement.cpp:
(WebCore::SVGAnimateTransformElement::calculateDistance): Changed to
use fabsf and removed narrowPrecisionToFloat.
2008-04-18 Adam Roben <aroben@apple.com>
Windows build fix
......@@ -27,7 +27,6 @@
#include "SVGAnimateTransformElement.h"
#include "AffineTransform.h"
#include "FloatConversion.h"
#include "RenderObject.h"
#include "SVGAngle.h"
#include "SVGElementInstance.h"
......@@ -195,7 +194,7 @@ float SVGAnimateTransformElement::calculateDistance(const String& fromString, co
return sqrtf(diff.width() * diff.width() + diff.height() * diff.height());
}
if (to.type() == SVGTransform::SVG_TRANSFORM_ROTATE)
return narrowPrecisionToFloat(fabs(to.angle() - from.angle()));
return fabsf(to.angle() - from.angle());
if (to.type() == SVGTransform::SVG_TRANSFORM_SCALE) {
FloatSize diff = to.scale() - from.scale();
return sqrtf(diff.width() * diff.width() + diff.height() * diff.height());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment