2002/css-validator/org/w3c/css/properties/css1 CssBackgroundColor.java,1.5,1.6

Update of /sources/public/2002/css-validator/org/w3c/css/properties/css1
In directory hutz:/tmp/cvs-serv2516

Modified Files:
	CssBackgroundColor.java 
Log Message:
fixed parsing aligning it directly to CssColor


Index: CssBackgroundColor.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css1/CssBackgroundColor.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- CssBackgroundColor.java	26 Mar 2008 10:23:03 -0000	1.5
+++ CssBackgroundColor.java	9 Mar 2009 20:17:24 -0000	1.6
@@ -64,24 +64,8 @@
 	}
 
 	setByUser();
-	CssValue val = expression.getValue();
-
-	switch (val.getType()) {
-	case CssTypes.CSS_COLOR:
-	    color = val;
-	    break;
-	case CssTypes.CSS_IDENT:
-	    if (inherit.equals(val)) {
-		color = inherit;
-		break;
-	    }
-	    color = new org.w3c.css.values.CssColor(ac, (String) val.get());
-	    break;
-	default:
-	    throw new InvalidParamException("value", val.toString(),
-					    getPropertyName(), ac);
-	}
-	expression.next();
+	CssColor tempcolor = new CssColor(ac, expression, check);
+	color = (CssValue) tempcolor.get();
     }
 
     public CssBackgroundColor(ApplContext ac, CssExpression expression)

Received on Monday, 9 March 2009 20:17:36 UTC