diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-06-23 21:33:46 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-06-23 21:33:46 +0200 |
commit | 39b6295bca7701655e8a42368a0654347f2b506c (patch) | |
tree | f512a71d4b2de337471bcfc3793c51b4943d702f | |
parent | 6adce2371510f37725f26eb3279cd65c9bfd5b26 (diff) |
whitespace
-rw-r--r-- | src/cssparser.cc | 9 |
1 files 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] != ')') { |