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

Unified Diff: core/svg/SVGSVGElement.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/svg/SVGRenderingIntent.idl ('k') | core/svg/SVGScriptElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/svg/SVGSVGElement.idl
diff --git a/core/svg/SVGSVGElement.idl b/core/svg/SVGSVGElement.idl
index ad7db21f52e7e4dfe51f91a430f7697d6bb30da5..0ad5d7ad7bf39d2803c42f5dc0c9748ce8dd973f 100644
--- a/core/svg/SVGSVGElement.idl
+++ b/core/svg/SVGSVGElement.idl
@@ -22,50 +22,56 @@
// http://www.w3.org/TR/SVG2/struct.html#InterfaceSVGSVGElement
-// TODO: no css::ViewCSS available!
-// TODO: no events::DocumentEvent available!
[
TypeChecking=Interface,
] interface SVGSVGElement : SVGGraphicsElement {
- readonly attribute SVGAnimatedLength x;
- readonly attribute SVGAnimatedLength y;
- readonly attribute SVGAnimatedLength width;
- readonly attribute SVGAnimatedLength height;
+ [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] readonly attribute SVGAnimatedLength x;
+ [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] readonly attribute SVGAnimatedLength y;
+ [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] readonly attribute SVGAnimatedLength width;
+ [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] readonly attribute SVGAnimatedLength height;
+ // TODO(philipj): viewport should be a DOMRectReadOnly.
readonly attribute SVGRect viewport;
- readonly attribute float pixelUnitToMillimeterX;
- readonly attribute float pixelUnitToMillimeterY;
- readonly attribute float screenPixelToMillimeterX;
- readonly attribute float screenPixelToMillimeterY;
- readonly attribute boolean useCurrentView;
- readonly attribute SVGViewSpec currentView;
+ // TODO(philipj): useCurrentView and currentView have been removed:
+ // https://github.com/w3c/svgwg/commit/4c26fd36937a65192024208d85c144a21071b057
+ [Measure] readonly attribute boolean useCurrentView;
+ [Measure] readonly attribute SVGViewSpec currentView;
attribute float currentScale;
+ // TODO(philipj): currentTranslate should be a DOMPointReadOnly.
[ImplementedAs=currentTranslateFromJavascript] readonly attribute SVGPoint currentTranslate;
- unsigned long suspendRedraw(unsigned long maxWaitMilliseconds);
- void unsuspendRedraw(unsigned long suspendHandleId);
- void unsuspendRedrawAll();
- void forceRedraw();
+ [RuntimeEnabled=SVG1DOM, DeprecateAs=SVGSVGElementSuspendRedraw] unsigned long suspendRedraw(unsigned long maxWaitMilliseconds);
+ [RuntimeEnabled=SVG1DOM, DeprecateAs=SVGSVGElementUnsuspendRedraw] void unsuspendRedraw(unsigned long suspendHandleId);
+ [RuntimeEnabled=SVG1DOM, DeprecateAs=SVGSVGElementUnsuspendRedrawAll] void unsuspendRedrawAll();
+ [RuntimeEnabled=SVG1DOM, DeprecateAs=SVGSVGElementForceRedraw] void forceRedraw();
void pauseAnimations();
void unpauseAnimations();
boolean animationsPaused();
float getCurrentTime();
void setCurrentTime(float seconds);
+ // TODO(philipj): The rect arguments should be DOMRectReadOnly.
NodeList getIntersectionList(SVGRect rect, SVGElement? referenceElement);
NodeList getEnclosureList(SVGRect rect, SVGElement? referenceElement);
boolean checkIntersection(SVGElement element, SVGRect rect);
boolean checkEnclosure(SVGElement element, SVGRect rect);
void deselectAll();
+ [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGNumber createSVGNumber();
+ [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGLength createSVGLength();
+ [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGAngle createSVGAngle();
+ // TODO(philipj): SVGPoint/Matrix/Rect should be DOMPoint/Matrix/Rect.
+ [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGPoint createSVGPoint();
+ [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGMatrix createSVGMatrix();
+ [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGRect createSVGRect();
+ [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGTransform createSVGTransform();
+ [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix);
- SVGNumber createSVGNumber();
- SVGLength createSVGLength();
- SVGAngle createSVGAngle();
- SVGPoint createSVGPoint();
- SVGMatrix createSVGMatrix();
- SVGRect createSVGRect();
- SVGTransform createSVGTransform();
- SVGTransform createSVGTransformFromMatrix(SVGMatrix matrix);
- Element getElementById(DOMString elementId);
+ // TODO(philipj): The following was part of SVG 1.1:
+ // http://www.w3.org/TR/SVG11/struct.html#InterfaceSVGSVGElement
+ [Measure] readonly attribute float pixelUnitToMillimeterX;
+ [Measure] readonly attribute float pixelUnitToMillimeterY;
+ [Measure] readonly attribute float screenPixelToMillimeterX;
+ [Measure] readonly attribute float screenPixelToMillimeterY;
+ [Measure] Element getElementById(DOMString elementId);
};
SVGSVGElement implements SVGFitToViewBox;
« no previous file with comments | « core/svg/SVGRenderingIntent.idl ('k') | core/svg/SVGScriptElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698