Index: core/svg/SVGMatrix.idl |
diff --git a/core/svg/SVGMatrix.idl b/core/svg/SVGMatrix.idl |
index 663c5be27d02bc866138befdf113cd37d171ad29..a613da6af4871006cbcc4ba2b2a4b61b68f2238f 100644 |
--- a/core/svg/SVGMatrix.idl |
+++ b/core/svg/SVGMatrix.idl |
@@ -20,30 +20,33 @@ |
* Boston, MA 02110-1301, USA. |
*/ |
+// http://www.w3.org/TR/SVG11/coords.html#InterfaceSVGMatrix |
+ |
+// TODO(philipj): SVGMatrix is gone from SVG 2, replaced by DOMMatrix. |
[ |
- TypeChecking=Interface, |
ImplementedAs=SVGMatrixTearOff, |
- SetWrapperReferenceTo(SVGTransform contextTransform) |
+ SetWrapperReferenceTo(SVGTransform contextTransform), |
+ TypeChecking=Interface, |
+ WillBeGarbageCollected, |
] interface SVGMatrix { |
// FIXME: these attributes should all be floats but since we implement |
// AffineTransform with doubles setting these as doubles makes more sense. |
- [RaisesException=Setter] attribute double a; |
- [RaisesException=Setter] attribute double b; |
- [RaisesException=Setter] attribute double c; |
- [RaisesException=Setter] attribute double d; |
- [RaisesException=Setter] attribute double e; |
- [RaisesException=Setter] attribute double f; |
+ [RaisesException=Setter] attribute unrestricted double a; |
+ [RaisesException=Setter] attribute unrestricted double b; |
+ [RaisesException=Setter] attribute unrestricted double c; |
+ [RaisesException=Setter] attribute unrestricted double d; |
+ [RaisesException=Setter] attribute unrestricted double e; |
+ [RaisesException=Setter] attribute unrestricted double f; |
SVGMatrix multiply(SVGMatrix secondMatrix); |
[RaisesException] SVGMatrix inverse(); |
- SVGMatrix translate(float x, float y); |
- SVGMatrix scale(float scaleFactor); |
- SVGMatrix scaleNonUniform(float scaleFactorX, float scaleFactorY); |
- SVGMatrix rotate(float angle); |
- [RaisesException] SVGMatrix rotateFromVector(float x, float y); |
+ SVGMatrix translate(unrestricted float x, unrestricted float y); |
+ SVGMatrix scale(unrestricted float scaleFactor); |
+ SVGMatrix scaleNonUniform(unrestricted float scaleFactorX, unrestricted float scaleFactorY); |
+ SVGMatrix rotate(unrestricted float angle); |
+ [RaisesException] SVGMatrix rotateFromVector(unrestricted float x, unrestricted float y); |
SVGMatrix flipX(); |
SVGMatrix flipY(); |
- SVGMatrix skewX(float angle); |
- SVGMatrix skewY(float angle); |
+ SVGMatrix skewX(unrestricted float angle); |
+ SVGMatrix skewY(unrestricted float angle); |
}; |
- |