[Webkit-unassigned] [Bug 12047] SVGPathSegList needs better getTotalLength, getSegmentAtLength path traversal code

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 3 08:27:21 PST 2007


macdome at opendarwin.org changed:

           What    |Removed                     |Added
            Summary|SVGPathSegList needs        |SVGPathSegList needs better
                   |getTotalLength,             |getTotalLength,
                   |getSegmentAtLength path     |getSegmentAtLength path
                   |traversal code              |traversal code

------- Comment #1 from macdome at opendarwin.org  2007-01-03 08:27 PDT -------
I added these when working on animateMotion.  However they don't yet work for
general case SVGPathSegLists.  Currently they only work on normalized/processed
SVGPathSegLists which only contain lines, movetos, closepaths, and curvetos. 
Eventually support should be added for all the various types, including arcs
(at least in the case of getSegmentAtLength).

Also, right now SVGPathSegList has a couple copies of the same switch statement
for doing these traversals.  Better might be to add a length() method onto the
individual segment classes, or to at least share the switch statement with a
single common method (similar to how PathTraversalState is used to support
sharing a single switch inside Path.cpp).

Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the webkit-unassigned mailing list