- From: CVS User ylafon <cvsmail@w3.org>
- Date: Thu, 03 Jan 2013 21:09:43 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3 In directory roscoe:/tmp/cvs-serv30869/css3 Modified Files: CssAzimuth.java Log Message: getAngle + deprecation --- /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssAzimuth.java 2012/12/18 09:56:16 1.2 +++ /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssAzimuth.java 2013/01/03 21:09:43 1.3 @@ -1,5 +1,5 @@ // -// $Id: CssAzimuth.java,v 1.2 2012/12/18 09:56:16 ylafon Exp $ +// $Id: CssAzimuth.java,v 1.3 2013/01/03 21:09:43 ylafon Exp $ // // (c) COPYRIGHT MIT, ERCIM and Keio University, 2011 // Please first read the full copyright statement in file COPYRIGHT.html @@ -11,7 +11,6 @@ import org.w3c.css.values.CssAngle; import org.w3c.css.values.CssExpression; import org.w3c.css.values.CssIdent; -import org.w3c.css.values.CssNumber; import org.w3c.css.values.CssOperator; import org.w3c.css.values.CssTypes; import org.w3c.css.values.CssValue; @@ -100,12 +99,11 @@ // find out if we can create an angle out of that value // (ie: equal 0) // per http://www.w3.org/TR/2011/REC-CSS2-20110607/aural.html#angles - val = ((CssNumber) val).getAngle(); case CssTypes.CSS_ANGLE: if (check && expression.getCount() > 1) { throw new InvalidParamException("unrecognize", ac); } - angleValue = (CssAngle) val; + angleValue = val.getAngle(); // FIXME is the following really true? not per spec... // if (!angleValue.isDegree()) { // throw new InvalidParamException("degree", ac);
Received on Thursday, 3 January 2013 21:09:44 UTC