Fix usage counter for calculated unitless SVG length
The original counter only counts unitless length literals, which is incorrect and was exposed by a recent refactoring crrev.com/c/1696274 This patch changes the counter to also count unitless lengths involved in math functions (e.g., calc(1 + 1%)). Bug: 979895 Change-Id: I49744bceee307485e979addb3ea9be95d9d22922 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1750189Reviewed-by:Emil A Eklund <eae@chromium.org> Reviewed-by:
Fredrik Söderquist <fs@opera.com> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#686493}
Showing
Please register or sign in to comment