Bug 204213

Summary: Fix getTotalLength() and getPointAtLength() for optimized rect and ellipse renderers
Product: WebKit Reporter: Said Abou-Hallawa <sabouhallawa>
Component: SVGAssignee: Said Abou-Hallawa <sabouhallawa>
Severity: Normal CC: commit-queue, dino, esprehn+autocc, ews-watchlist, fmalita, glenn, gyuyoung.kim, kondapallykalyan, krit, pdr, schenney, sergio, simon.fraser, webkit-bug-importer, zimmermann
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 200143    
Description Flags
Patch none

Description Said Abou-Hallawa 2019-11-14 17:02:41 PST
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.
Comment 1 Said Abou-Hallawa 2019-11-14 17:18:27 PST
Created attachment 383589 [details]
Comment 2 Said Abou-Hallawa 2019-11-16 07:21:07 PST
Created attachment 383696 [details]
Comment 3 WebKit Commit Bot 2019-11-18 13:45:49 PST
Comment on attachment 383696 [details]

Clearing flags on attachment: 383696

Committed r252563: <https://trac.webkit.org/changeset/252563>
Comment 4 WebKit Commit Bot 2019-11-18 13:45:50 PST
All reviewed patches have been landed.  Closing bug.
Comment 5 Radar WebKit Bug Importer 2019-11-18 13:46:21 PST