internal bool ParseGradientColorStops(nsCSSValueGradient aGradient, ref nsCSSValue aValue) { // At least two color stops are required if (!ParseColorStop(aGradient) || !ExpectSymbol(',', true) || !ParseColorStop(aGradient)) { SkipUntil(')'); return false; } // Additional color stops while (ExpectSymbol(',', true)) { if (!ParseColorStop(aGradient)) { SkipUntil(')'); return false; } } if (!ExpectSymbol(')', true)) { SkipUntil(')'); return false; } aValue.SetGradientValue(aGradient); return true; }