Bug 43838 - [Cairo] PathCairo should give back pointAtLength and length
Summary: [Cairo] PathCairo should give back pointAtLength and length
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-11 01:28 PDT by Dirk Schulze
Modified: 2011-07-06 11:47 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.