dom/webidl/SVGSVGElement.webidl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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 interface SVGViewSpec;
    15 interface SVGSVGElement : SVGGraphicsElement {
    17   readonly attribute SVGAnimatedLength x;
    18   readonly attribute SVGAnimatedLength y;
    19   readonly attribute SVGAnimatedLength width;
    20   readonly attribute SVGAnimatedLength height;
    21   // readonly attribute SVGRect viewport;
    22   readonly attribute float pixelUnitToMillimeterX;
    23   readonly attribute float pixelUnitToMillimeterY;
    24   readonly attribute float screenPixelToMillimeterX;
    25   readonly attribute float screenPixelToMillimeterY;
    26   readonly attribute boolean useCurrentView;
    27   // readonly attribute SVGViewSpec currentView;
    28            attribute float currentScale;
    29   readonly attribute SVGPoint currentTranslate;
    31   unsigned long suspendRedraw(unsigned long maxWaitMilliseconds);
    32   void unsuspendRedraw(unsigned long suspendHandleID);
    33   void unsuspendRedrawAll();
    34   [Throws]
    35   void forceRedraw();
    36   void pauseAnimations();
    37   void unpauseAnimations();
    38   boolean animationsPaused();
    39   float getCurrentTime();
    40   void setCurrentTime(float seconds);
    41   // NodeList getIntersectionList(SVGRect rect, SVGElement referenceElement);
    42   // NodeList getEnclosureList(SVGRect rect, SVGElement referenceElement);
    43   // boolean checkIntersection(SVGElement element, SVGRect rect);
    44   // boolean checkEnclosure(SVGElement element, SVGRect rect);
    45   void deselectAll();
    46   [NewObject]
    47   SVGNumber createSVGNumber();
    48   [NewObject]
    49   SVGLength createSVGLength();
    50   [NewObject]
    51   SVGAngle createSVGAngle();
    52   [NewObject]
    53   SVGPoint createSVGPoint();
    54   [NewObject]
    55   SVGMatrix createSVGMatrix();
    56   [NewObject]
    57   SVGRect createSVGRect();
    58   [NewObject]
    59   SVGTransform createSVGTransform();
    60   [NewObject]
    61   SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix);
    62   Element? getElementById(DOMString elementId);
    63 };
    65 /*SVGSVGElement implements ViewCSS;
    66 SVGSVGElement implements DocumentCSS;*/
    67 SVGSVGElement implements SVGFitToViewBox;
    68 SVGSVGElement implements SVGZoomAndPan;

mercurial