Bug 847480 - Convert DeprecatedAbs use in NS_LUMINOSITY_DIFFERENCE to Abs. r=dbaron
authorJeff Walden <jwalden@mit.edu>
Sat, 09 Mar 2013 14:20:04 -0800
changeset 124953 963e62fb0ab4fb15b0738bda57641c625fd9213c
parent 124952 0ed3d38e0e4dd1d122699246a3aa6092dcb12ea6
child 124954 7d6d8029f70f955a6c7e0d2a3745d6987525e4a5
push id24696
push userjwalden@mit.edu
push dateFri, 15 Mar 2013 17:45:29 +0000
treeherdermozilla-inbound@ba0b144c146f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs847480
milestone22.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 847480 - Convert DeprecatedAbs use in NS_LUMINOSITY_DIFFERENCE to Abs. r=dbaron
layout/base/nsCSSColorUtils.h
--- a/layout/base/nsCSSColorUtils.h
+++ b/layout/base/nsCSSColorUtils.h
@@ -12,17 +12,17 @@
 
 #include "nsColor.h"
 
 // "Sufficient contrast" is determined by
 // "Techniques For Accessibility Evalution And Repair Tools".
 // See http://www.w3.org/TR/AERT#color-contrast
 #define NS_SUFFICIENT_LUMINOSITY_DIFFERENCE 125000
 #define NS_LUMINOSITY_DIFFERENCE(a, b) \
-          mozilla::DeprecatedAbs(NS_GetLuminosity(a) - NS_GetLuminosity(b))
+          int32_t(mozilla::Abs(NS_GetLuminosity(a) - NS_GetLuminosity(b)))
 
 // To determine colors based on the background brightness and border color
 void NS_GetSpecial3DColors(nscolor aResult[2],
                            nscolor aBackgroundColor,
                            nscolor aBorderColor);
 
 // Determins brightness for a specific color
 int NS_GetBrightness(uint8_t aRed, uint8_t aGreen, uint8_t aBlue);