summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-28 17:59:29 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-28 17:59:29 +0000
commite967b2de9ea805ef40840280eae686040b8a5c94 (patch)
tree77b6d75498b4de4010361ee08787e88f3dab2fcc /app
parent1109fb03bbedade7244a4ce499dcef6b6ecc2bc9 (diff)
downloadchromium_src-e967b2de9ea805ef40840280eae686040b8a5c94.zip
chromium_src-e967b2de9ea805ef40840280eae686040b8a5c94.tar.gz
chromium_src-e967b2de9ea805ef40840280eae686040b8a5c94.tar.bz2
Comment out the condition (b == vmax), since it will always be true at this point in the code.
BUG=none TEST=none Review URL: http://codereview.chromium.org/243004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27374 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app')
-rw-r--r--app/gfx/color_utils.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/gfx/color_utils.cc b/app/gfx/color_utils.cc
index cf8cbd2..483e857 100644
--- a/app/gfx/color_utils.cc
+++ b/app/gfx/color_utils.cc
@@ -9,6 +9,8 @@
#include <windows.h>
#endif
+#include <algorithm>
+
#include "base/basictypes.h"
#include "base/logging.h"
#include "build/build_config.h"
@@ -97,7 +99,7 @@ void SkColorToHSL(SkColor c, HSL* hsl) {
hsl->h = db - dg;
else if (g == vmax)
hsl->h = (1.0 / 3.0) + dr - db;
- else if (b == vmax)
+ else // (b == vmax)
hsl->h = (2.0 / 3.0) + dg - dr;
if (hsl->h < 0.0)