Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 26 matching lines...) Expand all Loading... | |
| 37 [Measure] readonly attribute boolean useCurrentView; | 37 [Measure] readonly attribute boolean useCurrentView; |
| 38 [Measure] readonly attribute SVGViewSpec currentView; | 38 [Measure] readonly attribute SVGViewSpec currentView; |
| 39 attribute float currentScale; | 39 attribute float currentScale; |
| 40 // TODO(philipj): currentTranslate should be a DOMPointReadOnly. | 40 // TODO(philipj): currentTranslate should be a DOMPointReadOnly. |
| 41 [ImplementedAs=currentTranslateFromJavascript] readonly attribute SVGPoint c urrentTranslate; | 41 [ImplementedAs=currentTranslateFromJavascript] readonly attribute SVGPoint c urrentTranslate; |
| 42 | 42 |
| 43 [RuntimeEnabled=SVG1DOM, DeprecateAs=SVGSVGElementSuspendRedraw] unsigned lo ng suspendRedraw(unsigned long maxWaitMilliseconds); | 43 [RuntimeEnabled=SVG1DOM, DeprecateAs=SVGSVGElementSuspendRedraw] unsigned lo ng suspendRedraw(unsigned long maxWaitMilliseconds); |
| 44 [RuntimeEnabled=SVG1DOM, DeprecateAs=SVGSVGElementUnsuspendRedraw] void unsu spendRedraw(unsigned long suspendHandleId); | 44 [RuntimeEnabled=SVG1DOM, DeprecateAs=SVGSVGElementUnsuspendRedraw] void unsu spendRedraw(unsigned long suspendHandleId); |
| 45 [RuntimeEnabled=SVG1DOM, DeprecateAs=SVGSVGElementUnsuspendRedrawAll] void u nsuspendRedrawAll(); | 45 [RuntimeEnabled=SVG1DOM, DeprecateAs=SVGSVGElementUnsuspendRedrawAll] void u nsuspendRedrawAll(); |
| 46 [RuntimeEnabled=SVG1DOM, DeprecateAs=SVGSVGElementForceRedraw] void forceRed raw(); | 46 [RuntimeEnabled=SVG1DOM, DeprecateAs=SVGSVGElementForceRedraw] void forceRed raw(); |
| 47 void pauseAnimations(); | 47 |
| 48 void unpauseAnimations(); | 48 [RuntimeEnabled=SMIL] void pauseAnimations(); |
| 49 boolean animationsPaused(); | 49 [RuntimeEnabled=SMIL] void unpauseAnimations(); |
| 50 float getCurrentTime(); | 50 [RuntimeEnabled=SMIL] boolean animationsPaused(); |
| 51 void setCurrentTime(float seconds); | 51 [RuntimeEnabled=SMIL] float getCurrentTime(); |
|
pdr.
2015/07/23 22:16:02
There are some edge cases where this may be useful
| |
| 52 [RuntimeEnabled=SMIL] void setCurrentTime(float seconds); | |
| 53 | |
| 52 // TODO(philipj): The rect arguments should be DOMRectReadOnly. | 54 // TODO(philipj): The rect arguments should be DOMRectReadOnly. |
| 53 NodeList getIntersectionList(SVGRect rect, SVGElement? referenceElement); | 55 NodeList getIntersectionList(SVGRect rect, SVGElement? referenceElement); |
| 54 NodeList getEnclosureList(SVGRect rect, SVGElement? referenceElement); | 56 NodeList getEnclosureList(SVGRect rect, SVGElement? referenceElement); |
| 55 boolean checkIntersection(SVGElement element, SVGRect rect); | 57 boolean checkIntersection(SVGElement element, SVGRect rect); |
| 56 boolean checkEnclosure(SVGElement element, SVGRect rect); | 58 boolean checkEnclosure(SVGElement element, SVGRect rect); |
| 57 void deselectAll(); | 59 void deselectAll(); |
| 58 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGNumber createSVGNumber(); | 60 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGNumber createSVGNumber(); |
| 59 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGLength createSVGLength(); | 61 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGLength createSVGLength(); |
| 60 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGAngle createSVGAngle(); | 62 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGAngle createSVGAngle(); |
| 61 // TODO(philipj): SVGPoint/Matrix/Rect should be DOMPoint/Matrix/Rect. | 63 // TODO(philipj): SVGPoint/Matrix/Rect should be DOMPoint/Matrix/Rect. |
| 62 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGPoint createSVGPoint(); | 64 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGPoint createSVGPoint(); |
| 63 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGMatrix createSVGMatrix(); | 65 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGMatrix createSVGMatrix(); |
| 64 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGRect createSVGRect(); | 66 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGRect createSVGRect(); |
| 65 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGTransform createSVGTransform( ); | 67 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGTransform createSVGTransform( ); |
| 66 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGTransform createSVGTransformF romMatrix(SVGMatrix matrix); | 68 [RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] SVGTransform createSVGTransformF romMatrix(SVGMatrix matrix); |
| 67 | 69 |
| 68 // TODO(philipj): The following was part of SVG 1.1: | 70 // TODO(philipj): The following was part of SVG 1.1: |
| 69 // http://www.w3.org/TR/SVG11/struct.html#InterfaceSVGSVGElement | 71 // http://www.w3.org/TR/SVG11/struct.html#InterfaceSVGSVGElement |
| 70 [Measure] readonly attribute float pixelUnitToMillimeterX; | 72 [Measure] readonly attribute float pixelUnitToMillimeterX; |
| 71 [Measure] readonly attribute float pixelUnitToMillimeterY; | 73 [Measure] readonly attribute float pixelUnitToMillimeterY; |
| 72 [Measure] readonly attribute float screenPixelToMillimeterX; | 74 [Measure] readonly attribute float screenPixelToMillimeterX; |
| 73 [Measure] readonly attribute float screenPixelToMillimeterY; | 75 [Measure] readonly attribute float screenPixelToMillimeterY; |
| 74 [Measure] Element getElementById(DOMString elementId); | 76 [Measure] Element getElementById(DOMString elementId); |
| 75 }; | 77 }; |
| 76 | 78 |
| 77 SVGSVGElement implements SVGFitToViewBox; | 79 SVGSVGElement implements SVGFitToViewBox; |
| 78 SVGSVGElement implements SVGZoomAndPan; | 80 SVGSVGElement implements SVGZoomAndPan; |
| OLD | NEW |