forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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/+/1680294 Reviewed-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}
- Loading branch information
1 parent
2024a11
commit ee68e30
Showing
13 changed files
with
168 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.