W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2008

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

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 27 Mar 2008 14:07:14 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Jesl8-0007Em-Mb@lionel-hutz.w3.org>

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 GMT

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