2002/css-validator/org/w3c/css/properties/css1 CssBackground.java,1.10,1.11 CssBackgroundColor.java,1.8,1.9 CssBackgroundColorMob.java,1.6,1.7 CssBorder.java,1.9,1.10 CssBorderColor.java,1.12,1.13 CssColor.java,1.13,1.14

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

Modified Files:
	CssBackground.java CssBackgroundColor.java 
	CssBackgroundColorMob.java CssBorder.java CssBorderColor.java 
	CssColor.java 
Log Message:
color changed because of hashident

Index: CssBorder.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css1/CssBorder.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- CssBorder.java	26 Apr 2012 09:45:49 -0000	1.9
+++ CssBorder.java	18 Oct 2012 09:46:02 -0000	1.10
@@ -134,6 +134,11 @@
                     }
                     _width = val;
                     break;
+				case CssTypes.CSS_HASH_IDENT:
+					org.w3c.css.values.CssColor c = new org.w3c.css.values.CssColor();
+					c.setShortRGBColor(val.toString(), ac);
+					_color = c;
+					break;
                 case CssTypes.CSS_COLOR:
                     _color = val;
                     break;

Index: CssBorderColor.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css1/CssBorderColor.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- CssBorderColor.java	3 May 2012 13:21:02 -0000	1.12
+++ CssBorderColor.java	18 Oct 2012 09:46:02 -0000	1.13
@@ -68,6 +68,11 @@
             op = expression.getOperator();
 
             switch (val.getType()) {
+				case CssTypes.CSS_HASH_IDENT:
+					org.w3c.css.values.CssColor c = new org.w3c.css.values.CssColor();
+					c.setShortRGBColor(val.toString(), ac);
+					res.add(c);
+					break;
                 case CssTypes.CSS_COLOR:
                     res.add(val);
                     break;

Index: CssBackground.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css1/CssBackground.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- CssBackground.java	4 May 2012 12:57:39 -0000	1.10
+++ CssBackground.java	18 Oct 2012 09:46:01 -0000	1.11
@@ -120,6 +120,7 @@
 					}
 					find = false;
 					break;
+				case CssTypes.CSS_HASH_IDENT:
 				case CssTypes.CSS_COLOR:
 					if (color == null) {
 						color = new CssBackgroundColor(ac, expression);

Index: CssColor.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css1/CssColor.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- CssColor.java	4 Oct 2011 13:05:24 -0000	1.13
+++ CssColor.java	18 Oct 2012 09:46:02 -0000	1.14
@@ -44,6 +44,11 @@
         CssValue val = expression.getValue();
         setByUser();
         switch (val.getType()) {
+			case CssTypes.CSS_HASH_IDENT:
+				org.w3c.css.values.CssColor c = new org.w3c.css.values.CssColor();
+				c.setShortRGBColor(val.toString(), ac);
+				color = c;
+				break;
             case CssTypes.CSS_IDENT:
                 color = new org.w3c.css.values.CssColor(ac, (String) val.get());
                 break;

Index: CssBackgroundColorMob.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css1/CssBackgroundColorMob.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- CssBackgroundColorMob.java	9 Feb 2012 17:36:28 -0000	1.6
+++ CssBackgroundColorMob.java	18 Oct 2012 09:46:01 -0000	1.7
@@ -14,6 +14,7 @@
 import org.w3c.css.util.InvalidParamException;
 import org.w3c.css.values.CssExpression;
 import org.w3c.css.values.CssIdent;
+import org.w3c.css.values.CssTypes;
 import org.w3c.css.values.CssValue;
 
 /**
@@ -76,6 +77,10 @@
 		color = new org.w3c.css.values.CssColor(ac, (String) val.get());
 		expression.next();
 	    }
+	} else if (val.getType() == CssTypes.CSS_HASH_IDENT) {
+		org.w3c.css.values.CssColor c = new org.w3c.css.values.CssColor();
+		c.setShortRGBColor(val.toString(), ac);
+		color = c;
 	} else {
 	    throw new InvalidParamException("value", val.toString(),
 					    getPropertyName(), ac);

Index: CssBackgroundColor.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css1/CssBackgroundColor.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- CssBackgroundColor.java	9 Feb 2012 17:36:28 -0000	1.8
+++ CssBackgroundColor.java	18 Oct 2012 09:46:01 -0000	1.9
@@ -61,6 +61,11 @@
         CssValue val = expression.getValue();
 
         switch (val.getType()) {
+			case CssTypes.CSS_HASH_IDENT:
+				org.w3c.css.values.CssColor c = new org.w3c.css.values.CssColor();
+				c.setShortRGBColor(val.toString(), ac);
+				setColor(c);
+				break;
             case CssTypes.CSS_COLOR:
                 setColor(val);
                 break;

Received on Thursday, 18 October 2012 09:46:05 UTC