mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Implement nsSVGTransform::GetValueString() for nsIDOMSVGTransform::SVG_TRANSFORM_MATRIX case. Not part of default build - SVG only.
This commit is contained in:
parent
50cd4381bc
commit
1a02395585
@ -188,9 +188,22 @@ nsSVGTransform::GetValueString(nsAString& aValue)
|
||||
NS_LITERAL_STRING("skewY(%g)").get(), mAngle);
|
||||
}
|
||||
break;
|
||||
case nsIDOMSVGTransform::SVG_TRANSFORM_MATRIX:
|
||||
{
|
||||
float a,b,c,d,e,f;
|
||||
mMatrix->GetA(&a);
|
||||
mMatrix->GetB(&b);
|
||||
mMatrix->GetC(&c);
|
||||
mMatrix->GetD(&d);
|
||||
mMatrix->GetE(&e);
|
||||
mMatrix->GetF(&f);
|
||||
nsTextFormatter::snprintf(buf, sizeof(buf)/sizeof(PRUnichar),
|
||||
NS_LITERAL_STRING("matrix(%g, %g, %g, %g, %g, %g)").get(),
|
||||
a, b, c, d, e, f);
|
||||
}
|
||||
default:
|
||||
buf[0] = '\0';
|
||||
NS_NOTYETIMPLEMENTED("write me!");
|
||||
NS_ERROR("unknown transformation type");
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user