Used strongly-typed enum for CSS arithmetic operators
Current code uses weakly-typed CalcOperator enum for arithmetic operators, and casts them between chars interchangeably. This makes it hard to read, and prevents extending the operators with more math functions. Hence, this patch changes CalcOperator to a strongly-typed enum, stops all the direct casting between chars, and renames it to CSSMathOperator as a preparation to add new math functions. Bug: 825895 Change-Id: Ie2ea58163f800cf5f480ac34a9c49a3e677e1946 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1680294Reviewed-by:Anders Hartvoll Ruud <andruud@chromium.org> Reviewed-by:
Rune Lillesveen <futhark@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#673341}
Showing
This diff is collapsed.
Please register or sign in to comment