Bug 43838

Summary: [Cairo] PathCairo should give back pointAtLength and length
Product: WebKit Reporter: Dirk Schulze <krit>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: mrobinson
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   

Description Dirk Schulze 2010-08-11 01:28:30 PDT
PathCairo should give back pointAtLength and length itself. Cairographics provides a cairo_copy_path_flat function that makes a copy of the current path, that just uese moveTo and lineTo.
At the moment Cairo is using PathTraversalState. To implement the logic into Cairo directly can be a performance win. We would just need to calculate the distance between every sgementPoint and add it to the previous one.
Comment 1 Dirk Schulze 2011-07-06 11:47:53 PDT
We use a Path independent way to get pointAtLength and length now.