W3C home > Mailing lists > Public > www-validator-cvs@w3.org > October 2013

CVS 2002/css-validator/org/w3c/css/properties/css3

From: CVS User ylafon <cvsmail@w3.org>
Date: Fri, 04 Oct 2013 15:14:24 +0000
Message-Id: <E1VS75E-00041H-Bd@roscoe.w3.org>
To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3
In directory roscoe:/tmp/cvs-serv15451

Modified Files:
	CssFontSizeAdjust.java 
Log Message:
updated per CR spec

--- /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssFontSizeAdjust.java	2012/12/11 15:22:37	1.2
+++ /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssFontSizeAdjust.java	2013/10/04 15:14:24	1.3
@@ -1,4 +1,4 @@
-// $Id: CssFontSizeAdjust.java,v 1.2 2012/12/11 15:22:37 ylafon Exp $
+// $Id: CssFontSizeAdjust.java,v 1.3 2013/10/04 15:14:24 ylafon Exp $
 // Author: Yves Lafon <ylafon@w3.org>
 //
 // (c) COPYRIGHT MIT, ERCIM and Keio University, 2012.
@@ -13,26 +13,13 @@
 import org.w3c.css.values.CssValue;
 
 /**
- * @spec http://www.w3.org/TR/2012/WD-css3-fonts-20121211/#propdef-font-size-adjust
+ * @spec http://www.w3.org/TR/2013/CR-css-fonts-3-20131003/#propdef-font-size-adjust
  */
 public class CssFontSizeAdjust extends org.w3c.css.properties.css.CssFontSizeAdjust {
 
-	public static final CssIdent[] allowed_values;
-
-	static {
-		String[] _allowed_values = {"none", "auto"};
-		int i = 0;
-		allowed_values = new CssIdent[_allowed_values.length];
-		for (String s : _allowed_values) {
-			allowed_values[i++] = CssIdent.getIdent(s);
-		}
-	}
-
 	public static final CssIdent getAllowedIdent(CssIdent ident) {
-		for (CssIdent id : allowed_values) {
-			if (id.equals(ident)) {
-				return id;
-			}
+		if (none.equals(ident)) {
+			return none;
 		}
 		return null;
 	}
Received on Friday, 4 October 2013 15:14:29 UTC

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