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

2002/css-validator/org/w3c/css/properties/atsc CssBorderBottomColorATSC.java,1.5,1.6 CssBorderFaceWidthATSC.java,1.4,1.5

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 09 Feb 2012 17:36:29 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1RvXvX-0006kc-RC@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/properties/atsc
In directory hutz:/tmp/cvs-serv25830/w3c/css/properties/atsc

Modified Files:
	CssBorderBottomColorATSC.java CssBorderFaceWidthATSC.java 
Log Message:
various things: Use of BigIntegers to avoid limits, background-* are now avoiding multiplication of checks and properties in CssXStyles impls, various updates for other properties, use of a string reader for string input, added the possibility of not following links, prepared for aggregation of all uris parsed

Index: CssBorderBottomColorATSC.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/atsc/CssBorderBottomColorATSC.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- CssBorderBottomColorATSC.java	9 Sep 2011 12:16:42 -0000	1.5
+++ CssBorderBottomColorATSC.java	9 Feb 2012 17:36:27 -0000	1.6
@@ -30,7 +30,7 @@
     }
 
     /**
-     * Create a new CssBorderBottomColor with an another CssBorderFaceColor
+     * Create a new CssBorderBottomColorCSS21 with an another CssBorderFaceColor
      *
      * @param another An another face.
      */
@@ -42,7 +42,7 @@
     }
 
     /**
-     * Create a new CssBorderBottomColor
+     * Create a new CssBorderBottomColorCSS21
      *
      * @param expression The expression for this property.
      * @exception InvalidParamException Values are incorrect

Index: CssBorderFaceWidthATSC.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/atsc/CssBorderFaceWidthATSC.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- CssBorderFaceWidthATSC.java	5 Jan 2010 13:49:35 -0000	1.4
+++ CssBorderFaceWidthATSC.java	9 Feb 2012 17:36:27 -0000	1.5
@@ -55,11 +55,12 @@
 	CssValue val = expression.getValue();
 
 	if (val instanceof CssLength) {
-	    float f = ((Float) val.get()).floatValue();
-	    if (f >= 0)
+        CssLength l = (CssLength) val;
+        if (l.isPositive()) {
 		this.value = val;
-	    else
+        } else {
 		throw new InvalidParamException("negative-value", val.toString(), ac);
+        }
 	} else if (val instanceof CssNumber) {
 	    value = ((CssNumber) val).getLength();
 	} else if (val.equals(thin)) {
Received on Thursday, 9 February 2012 17:37:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:32 GMT