Since these functions were added in r231955, they do not handle the case of optimized rect and ellipse renderers. For these renderers, we do not create a path to draw the simple rect or ellipse. Instead we call the rect or ellipse functions directly from the GraphicsContext. But for getTotalLength() and getPointAtLength(), we need to create a temporary Path from the SVGElement then use it to answer the questions of these functions and finally delete it.
Created attachment 383589 [details] Patch
Created attachment 383696 [details] Patch
Comment on attachment 383696 [details] Patch Clearing flags on attachment: 383696 Committed r252563: <https://trac.webkit.org/changeset/252563>
All reviewed patches have been landed. Closing bug.
<rdar://problem/57296135>