W3C home > Mailing lists > Public > www-validator-cvs@w3.org > January 2010

2002/css-validator/org/w3c/css/properties/css2 CssBackgroundAttachmentCSS2.java,1.1,1.2 CssBackgroundPositionCSS2.java,1.1,1.2 CssBackgroundRepeatCSS2.java,1.1,1.2

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 05 Jan 2010 19:49:53 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1NSFPd-0003kv-5Y@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css2
In directory hutz:/tmp/cvs-serv14290/org/w3c/css/properties/css2

Modified Files:
	CssBackgroundAttachmentCSS2.java 
	CssBackgroundPositionCSS2.java CssBackgroundRepeatCSS2.java 
Log Message:
fix for background-attachment inheritance + background-color CSS3 + starting wrk on background + encoding of some files

Index: CssBackgroundRepeatCSS2.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css2/CssBackgroundRepeatCSS2.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- CssBackgroundRepeatCSS2.java	5 Jan 2010 13:49:46 -0000	1.1
+++ CssBackgroundRepeatCSS2.java	5 Jan 2010 19:49:51 -0000	1.2
@@ -55,7 +55,7 @@
         return allowed_values.containsValue(ident);
     }
     
-    public static HashMap<String, CssIdent> allowed_values;
+    private static HashMap<String, CssIdent> allowed_values;
 
     static {
         allowed_values = new HashMap<String, CssIdent>();

Index: CssBackgroundAttachmentCSS2.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css2/CssBackgroundAttachmentCSS2.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- CssBackgroundAttachmentCSS2.java	5 Jan 2010 13:49:46 -0000	1.1
+++ CssBackgroundAttachmentCSS2.java	5 Jan 2010 19:49:50 -0000	1.2
@@ -48,7 +48,10 @@
     public static boolean checkMatchingIdent(CssIdent ident) {
         return allowed_values.containsValue(ident);
     }
-    
+
+    private static HashMap<String,CssIdent> allowed_values;
+    private static CssIdent scroll;
+
     static {
         allowed_values = new HashMap<String, CssIdent>();
         scroll = CssIdent.getIdent("scroll");

Index: CssBackgroundPositionCSS2.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css2/CssBackgroundPositionCSS2.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- CssBackgroundPositionCSS2.java	5 Jan 2010 13:49:46 -0000	1.1
+++ CssBackgroundPositionCSS2.java	5 Jan 2010 19:49:51 -0000	1.2
@@ -19,10 +19,8 @@
 import org.w3c.css.values.CssTypes;
 import org.w3c.css.values.CssValue;
 
-import java.util.ArrayList;
 import java.util.HashMap;
 
-import static org.w3c.css.values.CssOperator.COMMA;
 import static org.w3c.css.values.CssOperator.SPACE;
 
 /**
@@ -238,7 +236,7 @@
                 switch (nb_values) {
                     case 1:
                         // If only one value is specified, the second value
-                        // is assumed to be ‘center’.
+                        // is assumed to be 'center'.
                         v.horizontal = v.value.get(0);
                         if (v.horizontal.getType() == CssTypes.CSS_NUMBER) {
                             v.horizontal = defaultPercent0;
@@ -395,4 +393,5 @@
             return ((Css1Style) style).cssBackgroundCSS2.position;
         }
     }
+    
 }
Received on Tuesday, 5 January 2010 19:49:54 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:41 UTC