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

2002/css-validator/org/w3c/css/properties/css1 CssWordSpacing.java,1.5,1.6

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 04 Sep 2012 08:23:22 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1T8oPq-0007Ap-Sj@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css1
In directory hutz:/tmp/cvs-serv27446/css1

Modified Files:
	CssWordSpacing.java 
Log Message:
use the root class CssValue

Index: CssWordSpacing.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css1/CssWordSpacing.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- CssWordSpacing.java	9 Feb 2012 17:36:29 -0000	1.5
+++ CssWordSpacing.java	4 Sep 2012 08:23:20 -0000	1.6
@@ -6,7 +6,6 @@
 // Please first read the full copyright statement in file COPYRIGHT.html
 package org.w3c.css.properties.css1;
 
-import org.w3c.css.properties.css.CssProperty;
 import org.w3c.css.util.ApplContext;
 import org.w3c.css.util.InvalidParamException;
 import org.w3c.css.values.CssExpression;
@@ -21,7 +20,6 @@
  */
 public class CssWordSpacing extends org.w3c.css.properties.css.CssWordSpacing {
 
-    private CssValue value;
     private static CssIdent normal = CssIdent.getIdent("normal");
 
     /**
@@ -55,7 +53,7 @@
                 value = val;
                 break;
             case CssTypes.CSS_IDENT:
-                if (inherit.equals(val) || normal.equals(val)) {
+                if (normal.equals(val)) {
                     value = val;
                     break;
                 }
@@ -71,35 +69,4 @@
         this(ac, expression, false);
     }
 
-    /**
-     * Returns the value of this property
-     */
-    public Object get() {
-        return value;
-    }
-
-    /**
-     * Returns true if this property is "softly" inherited
-     * e.g. his value equals inherit
-     */
-    public boolean isSoftlyInherited() {
-        return value == inherit;
-    }
-
-    /**
-     * Returns a string representation of the object.
-     */
-    public String toString() {
-        return value.toString();
-    }
-
-    /**
-     * Compares two properties for equality.
-     *
-     * @param property The other property.
-     */
-    public boolean equals(CssProperty property) {
-        return (property instanceof CssWordSpacing &&
-                value.equals(((CssWordSpacing) property).value));
-    }
 }
Received on Tuesday, 4 September 2012 08:23:28 UTC

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