Bug 1879816: Make nsCocoaWindow::Destroy close the window and let destruction happen...
[gecko.git] / dom / webidl / SVGSVGElement.webidl
blobe28ddc3805f07d3195e779e4bc067353ac507812
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 SVGSVGElement : SVGGraphicsElement {
16   [Constant]
17   readonly attribute SVGAnimatedLength x;
18   [Constant]
19   readonly attribute SVGAnimatedLength y;
20   [Constant]
21   readonly attribute SVGAnimatedLength width;
22   [Constant]
23   readonly attribute SVGAnimatedLength height;
24   [UseCounter]
25            attribute float currentScale;
26   readonly attribute SVGPoint currentTranslate;
28   [DependsOn=Nothing, Affects=Nothing]
29   unsigned long suspendRedraw(unsigned long maxWaitMilliseconds);
30   [DependsOn=Nothing, Affects=Nothing]
31   undefined unsuspendRedraw(unsigned long suspendHandleID);
32   [DependsOn=Nothing, Affects=Nothing]
33   undefined unsuspendRedrawAll();
34   [DependsOn=Nothing, Affects=Nothing]
35   undefined forceRedraw();
36   undefined pauseAnimations();
37   undefined unpauseAnimations();
38   boolean animationsPaused();
39   [BinaryName="getCurrentTimeAsFloat"]
40   float getCurrentTime();
41   undefined setCurrentTime(float seconds);
42   // NodeList getIntersectionList(SVGRect rect, SVGElement referenceElement);
43   // NodeList getEnclosureList(SVGRect rect, SVGElement referenceElement);
44   // boolean checkIntersection(SVGElement element, SVGRect rect);
45   // boolean checkEnclosure(SVGElement element, SVGRect rect);
46   [Deprecated="SVGDeselectAll"]
47   undefined deselectAll();
48   [NewObject]
49   SVGNumber createSVGNumber();
50   [NewObject]
51   SVGLength createSVGLength();
52   [NewObject]
53   SVGAngle createSVGAngle();
54   [NewObject]
55   SVGPoint createSVGPoint();
56   [NewObject]
57   SVGMatrix createSVGMatrix();
58   [NewObject]
59   SVGRect createSVGRect();
60   [NewObject]
61   SVGTransform createSVGTransform();
62   [NewObject, Throws]
63   SVGTransform createSVGTransformFromMatrix(optional DOMMatrix2DInit matrix = {});
64   [UseCounter]
65   Element? getElementById(DOMString elementId);
68 SVGSVGElement includes SVGFitToViewBox;
69 SVGSVGElement includes SVGZoomAndPan;