CVS 2002/css-validator/org/w3c/css/values

Update of /sources/public/2002/css-validator/org/w3c/css/values
In directory roscoe:/tmp/cvs-serv29513/values

Modified Files:
	CssUnitsCSS3.java 
Log Message:
added db

--- /sources/public/2002/css-validator/org/w3c/css/values/CssUnitsCSS3.java	2012/09/09 18:22:12	1.4
+++ /sources/public/2002/css-validator/org/w3c/css/values/CssUnitsCSS3.java	2013/01/03 13:21:43	1.5
@@ -1,4 +1,4 @@
-// $Id: CssUnitsCSS3.java,v 1.4 2012/09/09 18:22:12 ylafon Exp $
+// $Id: CssUnitsCSS3.java,v 1.5 2013/01/03 13:21:43 ylafon Exp $
 // Author: Yves Lafon <ylafon@w3.org>
 //
 // (c) COPYRIGHT MIT, ERCIM and Keio University, 2012.
@@ -25,6 +25,9 @@
 	public static final String[] angle_units = {
 			"deg", "grad", "rad", "turn"
 	};
+
+	public static final String volume_unit = "db";
+
 	private static final BigDecimal[] angle_mult;
 
 	static {
@@ -154,4 +157,13 @@
 		}
 		throw new InvalidParamException("unit", unit, ac);
 	}
+
+	protected static void parseVolumeUnit(String unit, CssVolume vol, ApplContext ac)
+			throws InvalidParamException {
+		if (volume_unit.equals(unit))  {
+			vol.unit = volume_unit;
+			return;
+		}
+		throw new InvalidParamException("unit", unit, ac);
+	}
 }

Received on Thursday, 3 January 2013 13:21:44 UTC