From 39b6295bca7701655e8a42368a0654347f2b506c Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Tue, 23 Jun 2009 21:33:46 +0200 Subject: whitespace --- src/cssparser.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/cssparser.cc b/src/cssparser.cc index 9bc10215..b25f1375 100644 --- a/src/cssparser.cc +++ b/src/cssparser.cc @@ -711,33 +711,30 @@ bool CssParser::parseRgbColor(int32_t *c) { MSG_CSS("expected '%s' not found in rgb color\n", "("); return false; } - nextToken(); + if (!parseRgbColorComponent(&cc)) return false; - *c |= cc; if (ttype != CSS_TK_CHAR || tval[0] != ',') { MSG_CSS("expected '%s' not found in rgb color\n", ","); return false; } - nextToken(); + if (!parseRgbColorComponent(&cc)) return false; - *c |= cc << 8; if (ttype != CSS_TK_CHAR || tval[0] != ',') { MSG_CSS("expected '%s' not found in rgb color\n", ","); return false; } - nextToken(); + if (!parseRgbColorComponent(&cc)) return false; - *c |= cc << 16; if (ttype != CSS_TK_CHAR || tval[0] != ')') { -- cgit v1.2.3