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

Unified Diff: Source/core/svg/SVGPathElement.idl

Issue 1153763008: Sync SVG interfaces with the specs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address feedback 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/svg/SVGNumberList.idl ('k') | Source/core/svg/SVGPathSeg.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « Source/core/svg/SVGNumberList.idl ('k') | Source/core/svg/SVGPathSeg.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698