- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 05 Mar 2009 22:59:20 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css1 In directory hutz:/tmp/cvs-serv8208 Modified Files: CssColor.java Log Message: HSLA parsing delegated (like HSL, RGBA, RGB) Index: CssColor.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css1/CssColor.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- CssColor.java 5 Mar 2009 22:46:18 -0000 1.5 +++ CssColor.java 5 Mar 2009 22:59:18 -0000 1.6 @@ -108,47 +108,9 @@ color = tempcolor; expression.next(); } else if (attr.getName().equals("hsla")) { - - Vector hslaValues = new Vector(); - - char op; - - CssValue v1 = params.getValue(); - op = params.getOperator(); - if (v1 == null || op != COMMA) { - throw new InvalidParamException("invalid-color", ac); - } - hslaValues.addElement(v1); - params.next(); - - CssValue v2 = params.getValue(); - op = params.getOperator(); - if (v2 == null || op != COMMA) { - throw new InvalidParamException("invalid-color", ac); - } - hslaValues.addElement(v2); - params.next(); - - CssValue v3 = params.getValue(); - op = params.getOperator(); - if (v3 == null || op != COMMA) { - throw new InvalidParamException("invalid-color", ac); - } - hslaValues.addElement(v3); - params.next(); - - CssValue v4 = params.getValue(); - if (v4 == null) { - throw new InvalidParamException("invalid-color", ac); - } - hslaValues.addElement(v4); - - params.starts(); - tempcolor.setHSLAColor(hslaValues, ac); - params.ends(); + tempcolor.setHSLAColor(params, ac); color = tempcolor; expression.next(); - } else { throw new InvalidParamException("value", params.getValue(),
Received on Thursday, 5 March 2009 22:59:30 UTC