W3C home > Mailing lists > Public > www-validator-cvs@w3.org > February 2012

2002/css-validator/org/w3c/css/properties/css3 CssBackgroundClip.java,1.5,1.6

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 13 Feb 2012 21:06:31 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Rx36V-0000f2-RL@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3
In directory hutz:/tmp/cvs-serv2526

Modified Files:
	CssBackgroundClip.java 
Log Message:
stoopid

Index: CssBackgroundClip.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssBackgroundClip.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- CssBackgroundClip.java	13 Feb 2012 19:07:13 -0000	1.5
+++ CssBackgroundClip.java	13 Feb 2012 21:06:29 -0000	1.6
@@ -22,17 +22,7 @@
 import static org.w3c.css.values.CssOperator.COMMA;
 
 /**
- * http://www.w3.org/TR/2009/CR-css3-background-20091217/#the-background-clip
- * Name: 	background-clip
- * Value: 	[border-box | padding-box ] [ , [border-box | padding-box ] ]*
- * Initial: 	border-box
- * Applies to: 	all elements
- * Inherited: 	no
- * Percentages: 	N/A
- * Media: 	visual
- * Computed value: 	same as specified value
- * <p/>
- * Determines the background painting area.
+ * @spec http://www.w3.org/TR/2011/CR-css3-background-20110215/#the-background-clip
  */
 
 public class CssBackgroundClip extends org.w3c.css.properties.css.CssBackgroundClip {
@@ -44,6 +34,7 @@
 
     static {
         border_box = CssIdent.getIdent("border-box");
+        allowed_values = new HashMap<String, CssIdent>();
         for (String s : val) {
             allowed_values.put(s, CssIdent.getIdent(s));
         }
@@ -51,20 +42,22 @@
 
     public static boolean isMatchingIdent(CssIdent ident) {
         return allowed_values.containsValue(ident);
- 
+
     }
 
     /**
      * Create a new CssBackgroundClip
      */
     public CssBackgroundClip() {
+        value = initial;
     }
 
     /**
      * Create a new CssBackgroundClip
      *
      * @param expression The expression for this property
-     * @throws org.w3c.css.util.InvalidParamException Incorrect value
+     * @throws org.w3c.css.util.InvalidParamException
+     *          Incorrect value
      */
     public CssBackgroundClip(ApplContext ac, CssExpression expression,
                              boolean check) throws InvalidParamException {
@@ -120,7 +113,7 @@
     public void set(Object val) {
         value = val;
     }
-    
+
     /**
      * Add this property to the CssStyle
      *
Received on Monday, 13 February 2012 21:06:33 GMT

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