CVS 2002/css-validator/org/w3c/css/properties/css21

Update of /sources/public/2002/css-validator/org/w3c/css/properties/css21
In directory roscoe:/tmp/cvs-serv8456/d/css21

Modified Files:
	CssElevation.java 
Log Message:
now uses getAngle

--- /sources/public/2002/css-validator/org/w3c/css/properties/css21/CssElevation.java	2013/01/02 14:32:19	1.4
+++ /sources/public/2002/css-validator/org/w3c/css/properties/css21/CssElevation.java	2013/01/03 19:30:44	1.5
@@ -1,5 +1,5 @@
 //
-// $Id: CssElevation.java,v 1.4 2013/01/02 14:32:19 ylafon Exp $
+// $Id: CssElevation.java,v 1.5 2013/01/03 19:30:44 ylafon Exp $
 //
 // (c) COPYRIGHT MIT, ERCIM and Keio University 2011
 // Please first read the full copyright statement in file COPYRIGHT.html
@@ -62,9 +62,9 @@
 		setByUser();
 
 		switch (val.getType()) {
+			case CssTypes.CSS_NUMBER:
 			case CssTypes.CSS_ANGLE:
-				// TODO getAngle()
-				CssAngle a = (CssAngle) val;
+				CssAngle a = val.getAngle();
 				float v = a.getDegree();
 				if (v > 90 && v < 270) {
 					throw new InvalidParamException("elevation.range", ac);

Received on Thursday, 3 January 2013 19:30:45 UTC