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

2002/css-validator/org/w3c/css/values CssIdent.java,1.11,1.12 HSLA.java,1.8,1.9

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Sat, 04 Aug 2012 21:17:09 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Sxlif-0008Dg-St@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/values
In directory hutz:/tmp/cvs-serv31218/w3c/css/values

Modified Files:
	CssIdent.java HSLA.java 
Log Message:
font revamp, still some missing properties for CSS3 and @font-face for CSS2 and CSS3

Index: CssIdent.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/values/CssIdent.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- CssIdent.java	27 Sep 2011 08:15:46 -0000	1.11
+++ CssIdent.java	4 Aug 2012 21:17:07 -0000	1.12
@@ -15,13 +15,13 @@
  */
 public class CssIdent extends CssValue {
 
-    public static HashMap<String, CssIdent> allowedvalues;
+    public static HashMap<String, CssIdent> cachedValues;
 
     static {
-        allowedvalues = new HashMap<String, CssIdent>();
-        allowedvalues.put("inherit", new CssIdent("inherit"));
-        allowedvalues.put("initial", new CssIdent("initial"));
-        allowedvalues.put("none", new CssIdent("none"));
+        cachedValues = new HashMap<String, CssIdent>();
+        cachedValues.put("inherit", new CssIdent("inherit"));
+        cachedValues.put("initial", new CssIdent("initial"));
+        cachedValues.put("none", new CssIdent("none"));
     }
 
     /**
@@ -31,12 +31,12 @@
      * @return a CssIdent
      */
     public static CssIdent getIdent(String name) {
-        CssIdent val = allowedvalues.get(name);
+        CssIdent val = cachedValues.get(name);
         if (val != null) {
             return val;
         }
         val = new CssIdent(name);
-        allowedvalues.put(name, val);
+        cachedValues.put(name, val);
         return val;
     }
 

Index: HSLA.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/values/HSLA.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- HSLA.java	29 Sep 2011 09:09:00 -0000	1.8
+++ HSLA.java	4 Aug 2012 21:17:07 -0000	1.9
@@ -69,7 +69,7 @@
             sb.append(Util.displayFloat(fh)).append(", ");
             sb.append(Util.displayFloat(fs)).append("%, ");
             sb.append(Util.displayFloat(fl)).append("%, ");
-            sb.append(Util.displayFloat(fa)).append(")");
+            sb.append(Util.displayFloat(fa)).append(')');
             output = sb.toString();
         }
         return output;
Received on Saturday, 4 August 2012 21:17:11 UTC

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