Use consistently computed lengths when finding relevant contour
In CalculatePointAndNormalOnPath, compute the accumulated length of the contours and compare against the passed in (now unmodified) |length|, to increase the chances of comparing similarly computed length with each other. |length| is often, directly or indirectly, derived from the computed length of the Path (i.e using Path::length().) Bug: 845375 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: Ibda61dd29921f41e0b294edde31ddb21ebbefd08 Reviewed-on: https://chromium-review.googlesource.com/1069071 Commit-Queue: Fredrik Söderquist <fs@opera.com> Reviewed-by:Stephen Chenney <schenney@chromium.org> Reviewed-by:
Florin Malita <fmalita@chromium.org> Cr-Commit-Position: refs/heads/master@{#561032}
Showing
Please register or sign in to comment