Searched refs:differenceSquared (Results 1 – 5 of 5) sorted by relevance
60 …if (textColor.rgb() == Color::black || differenceSquared(textColor, Color::white) > differenceSqua… in disabledTextColor()68 if (differenceSquared(disabledColor, backgroundColor) < minColorContrastValue) in disabledTextColor()
304 int d = differenceSquared(textColor, backgroundColor); in correctedTextColor()310 int distanceFromWhite = differenceSquared(textColor, Color::white); in correctedTextColor()311 int distanceFromBlack = differenceSquared(textColor, Color::black); in correctedTextColor()
74 int differenceSquared(const Color&, const Color&);
155 int differenceSquared(const Color& c1, const Color& c2) in differenceSquared() function
4659 (WebCore::differenceSquared): Added. Returns the difference squared of two colors.4665 … (WebCore::correctedTextColor): Uses differenceSquared instead of simpleDifferenceBetweenColors.