7758 } else {
7759 if (value.unit == CSSParserValue::Function
7760 && value.function->args
7761 && value.function->args->size() == 7 /* rgba + three commas */
7762 && equalLettersIgnoringASCIICase(value.function->name, "rgba(")) {
7763 int colorValues[4];
7764 if (!parseColorParameters(value, colorValues, true))
7765 return false;
7766 c = makeRGBA(colorValues[0], colorValues[1], colorValues[2], colorValues[3]);
7767 } else if (value.unit == CSSParserValue::Function
7768 && value.function->args
7769 && value.function->args->size() == 5 /* hsl + two commas */
7770 && equalLettersIgnoringASCIICase(value.function->name, "hsl(")) {
7771 double colorValues[3];
7772 if (!parseHSLParameters(value, colorValues, false))
7773 return false;
7774 c = makeRGBAFromHSLA(colorValues[0], colorValues[1], colorValues[2], 1.0);
7775 } else if (value.unit == CSSParserValue::Function
7776 && value.function->args
7777 && value.function->args->size() == 7 /* hsla + three commas */
7778 && equalLettersIgnoringASCIICase(value.function->name, "hsla(")) {
7779 double colorValues[4];
7780 if (!parseHSLParameters(value, colorValues, true))
7781 return false;
7782 c = makeRGBAFromHSLA(colorValues[0], colorValues[1], colorValues[2], colorValues[3]);
7783 } else
7758 } else if (value.unit == CSSParserValue::Function
7759 && value.function->args
7760 && value.function->args->size() == 7 /* rgba + three commas */
7761 && equalLettersIgnoringASCIICase(value.function->name, "rgba(")) {
7762 int colorValues[4];
7763 if (!parseRGBParameters(value, colorValues, true))