W3C home > Mailing lists > Public > www-validator-cvs@w3.org > December 2009

2002/css-validator/org/w3c/css/properties/css3 CssBackgroundCSS3.java,1.3,1.4

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 17 Dec 2009 16:18:32 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1NLJ3g-0000No-8Q@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3
In directory hutz:/tmp/cvs-serv1451

Modified Files:
	CssBackgroundCSS3.java 
Log Message:
revert

Index: CssBackgroundCSS3.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssBackgroundCSS3.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- CssBackgroundCSS3.java	17 Dec 2009 16:08:12 -0000	1.3
+++ CssBackgroundCSS3.java	17 Dec 2009 16:18:30 -0000	1.4
@@ -6,7 +6,7 @@
 package org.w3c.css.properties.css3;
 
 import org.w3c.css.properties.css1.CssBackgroundAttachmentCSS2;
-import org.w3c.css.properties.css1.CssBackground;
+import org.w3c.css.properties.css21.CssBackgroundCSS21;
 import org.w3c.css.properties.css1.CssBackgroundImageCSS2;
 import org.w3c.css.properties.css1.CssBackgroundRepeatCSS2;
 import org.w3c.css.properties.css1.CssBackgroundColor;
@@ -24,7 +24,15 @@
  * CssBackgroundCSS21<br />
  * Created: Aug 31, 2005 2:03:41 PM<br />
  */
-public class CssBackgroundCSS3 extends CssBackground {
+public class CssBackgroundCSS3 extends CssBackgroundCSS21 {
+    CssBackgroundColor color;
+
+    /**
+     * @param color The color to set.
+     */
+    public void setColor(CssBackgroundColor color) {
+        this.color = color;
+    }
 
     /**
      * Create a new CssBackgroundCSS2
@@ -60,7 +68,6 @@
 	    if (val == null) {
 		break;
 	    }
- System.err.println("*** Css background CSS3: "+val);
 	    op = expression.getOperator();
 	    
 	    // if there are many values, we can't have inherit as one of them
@@ -84,7 +91,7 @@
 		break;
 	    case CssTypes.CSS_COLOR:
 	    case CssTypes.CSS_FUNCTION:
-		if (getColor() == null) {
+		if (getColor2() == null) {
 		    setColor(new CssBackgroundColor(ac, expression));
 		    continue;
 		}
Received on Thursday, 17 December 2009 16:18:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:16 GMT