Fix handling of infinity in late-resolved relative colors When converting a CSSMathExpressionNode tree to a CalculationValue tree, we check whether the expression can be evaluated to NaN or infinity, and if so return an appropriate clamped value. That check was not accounting for the potential for color channel keywords to appear in the expression and instead implicitly treated any such keywords as having a value of 0. The fix is not to check for NaN or infinity when the expression contains color channel keywords. Instead, the evaluation happens once the channel keyword values are known and can be substituted in. Fixed: 404218611 Change-Id: Ieff3b60acf9989c1bee4d9139d5e56c761f94f7b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6370426 Commit-Queue: Kevin Babbitt <kbabbitt@microsoft.com> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/main@{#1434842}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.