Bug 984390 - Stop using gfxPoint in SVGMarkerElement. r=me

This commit is contained in:
Jonathan Watt 2014-03-18 10:41:35 +08:00
parent 61cb3d0dc6
commit 4cca9f3b54

View File

@ -301,19 +301,19 @@ SVGMarkerElement::GetMarkerTransform(float aStrokeWidth,
float aX, float aY, float aAutoAngle,
bool aIsStart)
{
gfxFloat scale = mEnumAttributes[MARKERUNITS].GetAnimValue() ==
SVG_MARKERUNITS_STROKEWIDTH ? aStrokeWidth : 1.0;
float scale = mEnumAttributes[MARKERUNITS].GetAnimValue() ==
SVG_MARKERUNITS_STROKEWIDTH ? aStrokeWidth : 1.0f;
gfxFloat angle;
float angle;
switch (mOrientType.GetAnimValueInternal()) {
case SVG_MARKER_ORIENT_AUTO:
angle = aAutoAngle;
break;
case SVG_MARKER_ORIENT_AUTO_START_REVERSE:
angle = aAutoAngle + (aIsStart ? M_PI : 0.0);
angle = aAutoAngle + (aIsStart ? M_PI : 0.0f);
break;
default: // SVG_MARKER_ORIENT_ANGLE
angle = mAngleAttributes[ORIENT].GetAnimValue() * M_PI / 180.0;
angle = mAngleAttributes[ORIENT].GetAnimValue() * M_PI / 180.0f;
break;
}