Merge mozilla-central to autoland on a CLOSED TREE
[gecko.git] / dom / webidl / SVGMatrix.webidl
blobe3136fad281a38649983ab6958e0abd6bd1df8f4
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4  * You can obtain one at http://mozilla.org/MPL/2.0/.
5  *
6  * The origin of this IDL file is
7  * http://www.w3.org/TR/SVG2/
8  *
9  * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
10  * liability, trademark and document use rules apply.
11  */
13 [Exposed=Window]
14 interface SVGMatrix {
16   [SetterThrows]
17   attribute float a;
18   [SetterThrows]
19   attribute float b;
20   [SetterThrows]
21   attribute float c;
22   [SetterThrows]
23   attribute float d;
24   [SetterThrows]
25   attribute float e;
26   [SetterThrows]
27   attribute float f;
29   [NewObject]
30   SVGMatrix multiply(SVGMatrix secondMatrix);
31   [NewObject, Throws]
32   SVGMatrix inverse();
33   [NewObject]
34   SVGMatrix translate(float x, float y);
35   [NewObject]
36   SVGMatrix scale(float scaleFactor);
37   [NewObject]
38   SVGMatrix scaleNonUniform(float scaleFactorX, float scaleFactorY);
39   [NewObject]
40   SVGMatrix rotate(float angle);
41   [NewObject, Throws]
42   SVGMatrix rotateFromVector(float x, float y);
43   [NewObject]
44   SVGMatrix flipX();
45   [NewObject]
46   SVGMatrix flipY();
47   [NewObject, Throws]
48   SVGMatrix skewX(float angle);
49   [NewObject, Throws]
50   SVGMatrix skewY(float angle);