- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 05 Mar 2009 18:01:56 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css1 In directory hutz:/tmp/cvs-serv9352 Modified Files: CssColor.java Log Message: parsing of RGBA deported to CssColor (like the parsing of RGB) Index: CssColor.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css1/CssColor.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- CssColor.java 14 Sep 2005 15:14:31 -0000 1.3 +++ CssColor.java 5 Mar 2009 18:01:54 -0000 1.4 @@ -100,42 +100,7 @@ expression.next(); } } else if (attr.getName().equals("rgba")) { - - Vector rgbaValues = new Vector(); - - char op; - - CssValue v1 = params.getValue(); - op = params.getOperator(); - if (v1 == null || op != COMMA) { - throw new InvalidParamException("invalid-color", ac); - } - rgbaValues.addElement(v1); - params.next(); - - CssValue v2 = params.getValue(); - op = params.getOperator(); - if (v2 == null || op != COMMA) { - throw new InvalidParamException("invalid-color", ac); - } - rgbaValues.addElement(v2); - params.next(); - - CssValue v3 = params.getValue(); - op = params.getOperator(); - if (v3 == null || op != COMMA) { - throw new InvalidParamException("invalid-color", ac); - } - rgbaValues.addElement(v3); - params.next(); - - CssValue v4 = params.getValue(); - if (v4 == null) { - throw new InvalidParamException("invalid-color", ac); - } - rgbaValues.addElement(v4); - - tempcolor.setRGBAColor(rgbaValues, ac); + tempcolor.setRGBAColor(params, ac); color = tempcolor; expression.next(); } else if (attr.getName().equals("hsl")) {
Received on Thursday, 5 March 2009 18:02:07 UTC