Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: Source/core/svg/SVGSVGElement.idl

Issue 1140343002: Sync the SVGSVGElement interface with the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/UseCounter.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2010 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2010 Rob Buis <buis@kde.org>
4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
5 * Copyright (C) 2006 Apple Inc. All rights reserved. 5 * Copyright (C) 2006 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 11 matching lines...) Expand all
22 22
23 // http://www.w3.org/TR/SVG2/struct.html#InterfaceSVGSVGElement 23 // http://www.w3.org/TR/SVG2/struct.html#InterfaceSVGSVGElement
24 [ 24 [
25 TypeChecking=Interface, 25 TypeChecking=Interface,
26 ] interface SVGSVGElement : SVGGraphicsElement { 26 ] interface SVGSVGElement : SVGGraphicsElement {
27 27
28 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] readonly attribute SVGAnimatedLe ngth x; 28 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] readonly attribute SVGAnimatedLe ngth x;
29 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] readonly attribute SVGAnimatedLe ngth y; 29 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] readonly attribute SVGAnimatedLe ngth y;
30 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] readonly attribute SVGAnimatedLe ngth width; 30 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] readonly attribute SVGAnimatedLe ngth width;
31 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] readonly attribute SVGAnimatedLe ngth height; 31 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] readonly attribute SVGAnimatedLe ngth height;
32 // TODO(philipj): viewport should be a DOMRectReadOnly.
32 readonly attribute SVGRect viewport; 33 readonly attribute SVGRect viewport;
33 readonly attribute float pixelUnitToMillimeterX;
34 readonly attribute float pixelUnitToMillimeterY;
35 readonly attribute float screenPixelToMillimeterX;
36 readonly attribute float screenPixelToMillimeterY;
37 readonly attribute boolean useCurrentView; 34 readonly attribute boolean useCurrentView;
38 readonly attribute SVGViewSpec currentView; 35 readonly attribute SVGViewSpec currentView;
39 attribute float currentScale; 36 attribute float currentScale;
37 // TODO(philipj): currentTranslate should be a DOMPointReadOnly.
40 [ImplementedAs=currentTranslateFromJavascript] readonly attribute SVGPoint c urrentTranslate; 38 [ImplementedAs=currentTranslateFromJavascript] readonly attribute SVGPoint c urrentTranslate;
41 39
42 [RuntimeEnabled=SVG1DOM, DeprecateAs=SVGSVGElementSuspendRedraw] unsigned lo ng suspendRedraw(unsigned long maxWaitMilliseconds); 40 [RuntimeEnabled=SVG1DOM, DeprecateAs=SVGSVGElementSuspendRedraw] unsigned lo ng suspendRedraw(unsigned long maxWaitMilliseconds);
43 [RuntimeEnabled=SVG1DOM, DeprecateAs=SVGSVGElementUnsuspendRedraw] void unsu spendRedraw(unsigned long suspendHandleId); 41 [RuntimeEnabled=SVG1DOM, DeprecateAs=SVGSVGElementUnsuspendRedraw] void unsu spendRedraw(unsigned long suspendHandleId);
44 [RuntimeEnabled=SVG1DOM, DeprecateAs=SVGSVGElementUnsuspendRedrawAll] void u nsuspendRedrawAll(); 42 [RuntimeEnabled=SVG1DOM, DeprecateAs=SVGSVGElementUnsuspendRedrawAll] void u nsuspendRedrawAll();
45 [RuntimeEnabled=SVG1DOM, DeprecateAs=SVGSVGElementForceRedraw] void forceRed raw(); 43 [RuntimeEnabled=SVG1DOM, DeprecateAs=SVGSVGElementForceRedraw] void forceRed raw();
46 void pauseAnimations(); 44 void pauseAnimations();
47 void unpauseAnimations(); 45 void unpauseAnimations();
48 boolean animationsPaused(); 46 boolean animationsPaused();
49 float getCurrentTime(); 47 float getCurrentTime();
50 void setCurrentTime(float seconds); 48 void setCurrentTime(float seconds);
49 // TODO(philipj): The rect arguments should be DOMRectReadOnly.
50 // TODO(philipj): The referenceElement arguments should not be nullable.
fs 2015/05/18 13:18:03 I think this is a spec omission actually (this arg
philipj_slow 2015/05/18 13:34:49 I reverted this bit and updated the description.
51 NodeList getIntersectionList(SVGRect rect, SVGElement? referenceElement); 51 NodeList getIntersectionList(SVGRect rect, SVGElement? referenceElement);
52 NodeList getEnclosureList(SVGRect rect, SVGElement? referenceElement); 52 NodeList getEnclosureList(SVGRect rect, SVGElement? referenceElement);
53 boolean checkIntersection(SVGElement element, SVGRect rect); 53 boolean checkIntersection(SVGElement element, SVGRect rect);
54 boolean checkEnclosure(SVGElement element, SVGRect rect); 54 boolean checkEnclosure(SVGElement element, SVGRect rect);
55 void deselectAll(); 55 void deselectAll();
56
57 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGNumber createSVGNumber(); 56 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGNumber createSVGNumber();
58 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGLength createSVGLength(); 57 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGLength createSVGLength();
59 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGAngle createSVGAngle(); 58 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGAngle createSVGAngle();
59 // TODO(philipj): SVGPoint/Matrix/Rect should be DOMPoint/Matrix/Rect.
60 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGPoint createSVGPoint(); 60 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGPoint createSVGPoint();
61 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGMatrix createSVGMatrix(); 61 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGMatrix createSVGMatrix();
62 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGRect createSVGRect(); 62 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGRect createSVGRect();
63 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGTransform createSVGTransform( ); 63 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGTransform createSVGTransform( );
64 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGTransform createSVGTransformF romMatrix(SVGMatrix matrix); 64 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGTransform createSVGTransformF romMatrix(SVGMatrix matrix);
65 Element getElementById(DOMString elementId); 65
66 // The following were part of SVG 1.1 but are gone from SVG 2:
67 // http://www.w3.org/TR/SVG/struct.html#InterfaceSVGSVGElement
68 [Measure] readonly attribute float pixelUnitToMillimeterX;
69 [Measure] readonly attribute float pixelUnitToMillimeterY;
70 [Measure] readonly attribute float screenPixelToMillimeterX;
71 [Measure] readonly attribute float screenPixelToMillimeterY;
72 [Measure] Element getElementById(DOMString elementId);
66 }; 73 };
67 74
68 SVGSVGElement implements SVGFitToViewBox; 75 SVGSVGElement implements SVGFitToViewBox;
69 SVGSVGElement implements SVGZoomAndPan; 76 SVGSVGElement implements SVGZoomAndPan;
OLDNEW
« no previous file with comments | « Source/core/frame/UseCounter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698