- From: CVS User ylafon <cvsmail@w3.org>
- Date: Mon, 17 Dec 2012 15:26:59 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/values In directory roscoe:/tmp/cvs-serv30578/values Modified Files: CssNumber.java CssPercentage.java Log Message: better to use bigd here --- /sources/public/2002/css-validator/org/w3c/css/values/CssNumber.java 2012/12/17 15:21:09 1.23 +++ /sources/public/2002/css-validator/org/w3c/css/values/CssNumber.java 2012/12/17 15:26:59 1.24 @@ -1,4 +1,4 @@ -// $Id: CssNumber.java,v 1.23 2012/12/17 15:21:09 ylafon Exp $ +// $Id: CssNumber.java,v 1.24 2012/12/17 15:26:59 ylafon Exp $ // From Philippe Le Hegaret (Philippe.Le_Hegaret@sophia.inria.fr) // // (c) COPYRIGHT MIT, ERCIM and Keio University, 2011 @@ -14,7 +14,7 @@ /** * A CSS number. * - * @version $Revision: 1.23 $ + * @version $Revision: 1.24 $ */ public class CssNumber extends CssCheckableValue implements CssValueFloat { @@ -328,7 +328,7 @@ if (value.compareTo(other) > 0) { String[] s = new String[2]; s[0] = toString(); - s[1] = Double.toString(d); + s[1] = other.toPlainString(); ac.getFrame().addWarning("lowerequal", s); } } --- /sources/public/2002/css-validator/org/w3c/css/values/CssPercentage.java 2012/12/17 15:21:09 1.17 +++ /sources/public/2002/css-validator/org/w3c/css/values/CssPercentage.java 2012/12/17 15:26:59 1.18 @@ -1,5 +1,5 @@ // -// $Id: CssPercentage.java,v 1.17 2012/12/17 15:21:09 ylafon Exp $ +// $Id: CssPercentage.java,v 1.18 2012/12/17 15:26:59 ylafon Exp $ // From Philippe Le Hegaret (Philippe.Le_Hegaret@sophia.inria.fr) // // (c) COPYRIGHT MIT, ERCIM and Keio University, 2010. @@ -33,7 +33,7 @@ * In all inherited CSS1 properties, if the value is specified as a percentage, * child elements inherit the resultant value, not the percentage value. * - * @version $Revision: 1.17 $ + * @version $Revision: 1.18 $ */ public class CssPercentage extends CssCheckableValue { @@ -239,7 +239,7 @@ if (value.compareTo(other) > 0) { String[] s = new String[2]; s[0] = toString(); - s[1] = Double.toString(d) + '%'; + s[1] = other.toPlainString() + '%'; ac.getFrame().addWarning("lowerequal", s); } }
Received on Monday, 17 December 2012 15:27:02 UTC