[Webkit-unassigned] [Bug 42079] SVG Large curve path segment OOM crash

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 11 04:54:27 PDT 2010


--- Comment #5 from Dirk Schulze <krit at webkit.org>  2010-08-11 04:54:27 PST ---
(In reply to comment #4)
> Firefox seems to use the algorithm, but with a higher precision. The main difference is, that they use rekursive calls instead of a stack:
> http://mxr.mozilla.org/mozilla-central/source/content/svg/content/src/nsSVGPathSeg.cpp#129

Hmm. We could use the recursive version for getTotalLength or getPathSegAtLength. But I forgot, that we use this algorithm for getPointAtLength as well :-/
Firefox has another codePath for getPointAtLength and getTotalLength. Firefox flattens the Path, so that you just have moveTo's and lineTo's and goes throug all path segments one by the other and calculates the length. This is all done by cairo, except the adding of path length.

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

More information about the webkit-unassigned mailing list