summarylogtreecommitdiffstats
path: root/chromium-cmath.patch
blob: d76918304072eab91519526d9f1107aa7defcd2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/ui/gfx/color_utils.cc b/ui/gfx/color_utils.cc
index 92ba1407d594..49986ac767f8 100644
--- a/ui/gfx/color_utils.cc
+++ b/ui/gfx/color_utils.cc
@@ -431,7 +431,7 @@ SkColor SetDarkestColorForTesting(SkColor color) {
   // GetContrastRatio(kWhiteLuminance, g_luminance_midpoint).  The formula below
   // can be verified by plugging it into how GetContrastRatio() operates.
   g_luminance_midpoint =
-      std::sqrt((dark_luminance + 0.05f) * (kWhiteLuminance + 0.05f)) - 0.05f;
+      ::sqrt((dark_luminance + 0.05f) * (kWhiteLuminance + 0.05f)) - 0.05f;
 
   return previous_darkest_color;
 }