Fix getPointAtLength() for arcs that decompose to multiple beziers
When an arc segment was decomposed into more than one cubic bezier segment, some "residue" (the length of the first part of the cubic that was "flat enough") would accumulate from any segments that followed the one that contained the point. This would make the computed |offset| incorrect. Switch to checking, for each bezier segment, if the we've passed the point (length) that we're querying, and skip adding anything for that bezier segment. Bug: 719516 Change-Id: I0c54e1a07be5fb5edddaded542df0ffd5b0a087c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1939979 Commit-Queue: Fredrik Söderquist <fs@opera.com> Reviewed-by:Stephen Chenney <schenney@chromium.org> Cr-Commit-Position: refs/heads/master@{#720539}
Showing
Please register or sign in to comment