Index: Source/core/svg/SVGPathElement.idl |
diff --git a/Source/core/svg/SVGPathElement.idl b/Source/core/svg/SVGPathElement.idl |
index e74fd0c95a2e5177a008a97ff0b2608de7949f6e..80c852f3253e5a313f710c777b560164240625de 100644 |
--- a/Source/core/svg/SVGPathElement.idl |
+++ b/Source/core/svg/SVGPathElement.idl |
@@ -24,12 +24,15 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+// http://www.w3.org/TR/SVG2/paths.html#InterfaceSVGPathElement |
+ |
[ |
TypeChecking=Interface, |
] interface SVGPathElement : SVGGeometryElement { |
[RuntimeEnabled=SVG1DOM, MeasureAs=SVG1DOM] readonly attribute SVGAnimatedNumber pathLength; |
float getTotalLength(); |
+ // TODO(philipj): SVGPoint should be DOMPoint. |
SVGPoint getPointAtLength(float distance); |
unsigned long getPathSegAtLength(float distance); |
@@ -72,8 +75,14 @@ |
[RuntimeEnabled=SVG1DOM, MeasureAs=SVGPathSegDOM] SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(float x, float y); |
[RuntimeEnabled=SVG1DOM, MeasureAs=SVGPathSegDOM] SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(float x, float y); |
+ // TODO(philipj): pathSegList and animatedPathSegList should be on the |
+ // SVGAnimatedPathData interface which SVGPathElement should implement: |
+ // http://www.w3.org/TR/SVG2/paths.html#InterfaceSVGAnimatedPathData |
[RuntimeEnabled=SVG1DOM, MeasureAs=SVGPathSegDOM] readonly attribute SVGPathSegList pathSegList; |
- [RuntimeEnabled=SVG1DOM, MeasureAs=SVGPathSegDOM] readonly attribute SVGPathSegList normalizedPathSegList; |
[RuntimeEnabled=SVG1DOM, MeasureAs=SVGPathSegDOM] readonly attribute SVGPathSegList animatedPathSegList; |
+ |
+ // TODO(philipj): The following was part of SVG 1.1: |
+ // http://www.w3.org/TR/SVG11/paths.html#InterfaceSVGAnimatedPathData |
+ [RuntimeEnabled=SVG1DOM, MeasureAs=SVGPathSegDOM] readonly attribute SVGPathSegList normalizedPathSegList; |
[RuntimeEnabled=SVG1DOM, MeasureAs=SVGPathSegDOM] readonly attribute SVGPathSegList animatedNormalizedPathSegList; |
}; |