[PE] Fix edge-cases in SVGGeometryElement::PathLengthScaleFactor
Update the computation of the scale factor to match what the spec [1] has to say about a value of zero: i.e yield (near) infinity rather than zero. Also update the case where the computed path length is zero. [1] https://svgwg.org/svg2-draft/paths.html#PathLengthAttribute Bug: 803127 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: I6816b6bdd47cbaee90e8ad22e16d1dcf44498c7d Reviewed-on: https://chromium-review.googlesource.com/893184Reviewed-by:Stephen Chenney <schenney@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#533003}
Showing
Please register or sign in to comment