- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 10 Sep 2012 11:58:33 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3 In directory hutz:/tmp/cvs-serv13364/properties/css3 Modified Files: CssTabSize.java Log Message: tarting the use of range checking in values (useful for CSS3 and onward only) Index: CssTabSize.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssTabSize.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- CssTabSize.java 10 Sep 2012 11:47:18 -0000 1.5 +++ CssTabSize.java 10 Sep 2012 11:58:31 -0000 1.6 @@ -43,24 +43,13 @@ switch (val.getType()) { case CssTypes.CSS_NUMBER: CssNumber number = val.getNumber(); - if (!number.isInteger()) { - throw new InvalidParamException("integer", - val.toString(), - getPropertyName(), ac); - } + number.checkInteger(ac, this); number.checkPositiveness(ac, this); - if (!number.isPositive()) { - throw new InvalidParamException("negative-value", - number, getPropertyName(), ac); - } value = val; break; case CssTypes.CSS_LENGTH: CssLength l = val.getLength(); - if (!l.isPositive()) { - throw new InvalidParamException("negative-value", - l, getPropertyName(), ac); - } + l.checkPositiveness(ac, this); value = val; break; case CssTypes.CSS_IDENT:
Received on Monday, 10 September 2012 11:58:37 UTC