Stop parse-time range checking on SVG non-negative lengths in math functions
According to spec (*), we shouldn't perform range checking for math function at parse time. This patch stops such checking on SVG lengths. This also eliminates an improper call of CSSMathFunctionValue::DoubleValue(), so that we can put runtime unit type checking in there. (*) https://drafts.csswg.org/css-values-4/#calc-range Bug: 979895, 982425 Change-Id: Id7abfcda611c23216127818e7e2473b065116fd6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1693132 Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Reviewed-by:Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#676453}
Showing
Please register or sign in to comment