Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / Source / core / svg / SVGMatrix.idl
bloba613da6af4871006cbcc4ba2b2a4b61b68f2238f
1 /*
2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
5 * Copyright (C) 2006 Apple Inc. All rights reserved.
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
17 * You should have received a copy of the GNU Library General Public License
18 * along with this library; see the file COPYING.LIB. If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA.
23 // http://www.w3.org/TR/SVG11/coords.html#InterfaceSVGMatrix
25 // TODO(philipj): SVGMatrix is gone from SVG 2, replaced by DOMMatrix.
27 ImplementedAs=SVGMatrixTearOff,
28 SetWrapperReferenceTo(SVGTransform contextTransform),
29 TypeChecking=Interface,
30 WillBeGarbageCollected,
31 ] interface SVGMatrix {
32 // FIXME: these attributes should all be floats but since we implement
33 // AffineTransform with doubles setting these as doubles makes more sense.
34 [RaisesException=Setter] attribute unrestricted double a;
35 [RaisesException=Setter] attribute unrestricted double b;
36 [RaisesException=Setter] attribute unrestricted double c;
37 [RaisesException=Setter] attribute unrestricted double d;
38 [RaisesException=Setter] attribute unrestricted double e;
39 [RaisesException=Setter] attribute unrestricted double f;
41 SVGMatrix multiply(SVGMatrix secondMatrix);
42 [RaisesException] SVGMatrix inverse();
43 SVGMatrix translate(unrestricted float x, unrestricted float y);
44 SVGMatrix scale(unrestricted float scaleFactor);
45 SVGMatrix scaleNonUniform(unrestricted float scaleFactorX, unrestricted float scaleFactorY);
46 SVGMatrix rotate(unrestricted float angle);
47 [RaisesException] SVGMatrix rotateFromVector(unrestricted float x, unrestricted float y);
48 SVGMatrix flipX();
49 SVGMatrix flipY();
50 SVGMatrix skewX(unrestricted float angle);
51 SVGMatrix skewY(unrestricted float angle);