diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-26 00:56:07 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-26 00:56:07 +0000 |
commit | d39f4919b3b26c4470f4ea2153178d8178ddc498 (patch) | |
tree | 32af6ee9be5cebe401c6372088a266cc82802b22 /content | |
parent | e6671c02f07b23844f68b0473e33eabcbbaf33ee (diff) | |
download | chromium_src-d39f4919b3b26c4470f4ea2153178d8178ddc498.zip chromium_src-d39f4919b3b26c4470f4ea2153178d8178ddc498.tar.gz chromium_src-d39f4919b3b26c4470f4ea2153178d8178ddc498.tar.bz2 |
Take 2 at fixing a double overflow bug in RGB->HSL conversion.
I thought doing a double comparison would work, but instead, switch
the HSL check to use the original RGB values rather than doubles.
This fixes a failure on the official builder:
ColorUtils.SkColorToHSLGrey:
ui/gfx/color_utils_unittest.cc:24: Failure
Value of: 0
Expected: hsl.s
Which is: 7.0206359180926512e-18
BUG=72256
Review URL: http://codereview.chromium.org/6588013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76130 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
0 files changed, 0 insertions, 0 deletions