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

2002/css-validator/org/w3c/css/properties/css3 CssMarqueePlayCount.java,1.3,1.4 CssTabSize.java,1.4,1.5

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 10 Sep 2012 11:47:20 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1TB2SW-0001FR-36@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3
In directory hutz:/tmp/cvs-serv4723/properties/css3

Modified Files:
	CssMarqueePlayCount.java CssTabSize.java 
Log Message:
tarting the use of range checking in values (useful for CSS3 and onward only)

Index: CssMarqueePlayCount.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssMarqueePlayCount.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- CssMarqueePlayCount.java	6 Sep 2012 12:37:58 -0000	1.3
+++ CssMarqueePlayCount.java	10 Sep 2012 11:47:17 -0000	1.4
@@ -16,7 +16,7 @@
 /**
  * @spec http://www.w3.org/TR/2008/CR-css3-marquee-20081205/#marquee-play-count
  */
-public class CssMarqueePlayCount extends org.w3c.css.properties.css.CssMarqueeDirection {
+public class CssMarqueePlayCount extends org.w3c.css.properties.css.CssMarqueePlayCount {
 
 	private static CssIdent infinite;
 
@@ -55,10 +55,8 @@
 							val.toString(),
 							getPropertyName(), ac);
 				}
-				if (!num.isPositive()) {
-					throw new InvalidParamException("negative-value",
-							num, getPropertyName(), ac);
-				}
+				num.checkPositiveness(ac, this);
+				value = num;
 				break;
 			case CssTypes.CSS_IDENT:
 				CssIdent ident = (CssIdent) val;

Index: CssTabSize.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssTabSize.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- CssTabSize.java	6 Sep 2012 12:37:58 -0000	1.4
+++ CssTabSize.java	10 Sep 2012 11:47:18 -0000	1.5
@@ -48,6 +48,7 @@
 							val.toString(),
 							getPropertyName(), ac);
 				}
+				number.checkPositiveness(ac, this);
 				if (!number.isPositive()) {
 					throw new InvalidParamException("negative-value",
 							number, getPropertyName(), ac);
Received on Monday, 10 September 2012 11:47:24 UTC

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