2002/css-validator/org/w3c/css/properties/css1 CssBackgroundCSS2.java,1.8,1.9

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

Modified Files:
	CssBackgroundCSS2.java 
Log Message:
do duplicate as it should (ie: in a painful way)


Index: CssBackgroundCSS2.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css1/CssBackgroundCSS2.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- CssBackgroundCSS2.java	17 Mar 2008 18:29:51 -0000	1.8
+++ CssBackgroundCSS2.java	27 Mar 2008 14:07:12 -0000	1.9
@@ -65,6 +65,33 @@
     boolean same;
 
     /**
+     * Duplicate this property.
+     *
+     * @see org.w3c.css.css.CssCascadingOrder#order
+     */
+    public CssProperty duplicate() {
+	CssBackgroundCSS2 cloned = (CssBackgroundCSS2) super.duplicate();
+	if (cloned != null) {
+	    if (color != null) {
+		cloned.color = (CssBackgroundColorCSS2) color.duplicate();
+	    }
+	    if (image != null) {
+		cloned.image = (CssBackgroundImageCSS2) image.duplicate();
+	    }
+	    if (repeat != null) {
+		cloned.repeat = (CssBackgroundRepeatCSS2) repeat.duplicate();
+	    }
+	    if (attachment != null) {
+		cloned.attachment = (CssBackgroundAttachmentCSS2) attachment.duplicate();
+	    }
+	    if (position != null) {
+		cloned.position = (CssBackgroundPositionCSS2) position.duplicate();
+	    }
+	}
+	return cloned;
+    }
+
+    /**
      * Create a new CssBackgroundCSS2
      */
     public CssBackgroundCSS2() {

Received on Thursday, 27 March 2008 14:07:49 UTC