- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 05 Nov 2012 13:43:20 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css In directory hutz:/tmp/cvs-serv20880/css Modified Files: CssDirection.java Log Message: direction - fix with @spec links, added css3 and atsc cleanup Index: CssDirection.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css/CssDirection.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- CssDirection.java 7 Oct 2011 09:33:19 -0000 1.2 +++ CssDirection.java 5 Nov 2012 13:43:18 -0000 1.3 @@ -1,15 +1,12 @@ -// // $Id$ -// From Philippe Le Hegaret (Philippe.Le_Hegaret@sophia.inria.fr) +// Author: Yves Lafon <ylafon@w3.org> // -// (c) COPYRIGHT MIT and INRIA, 1997. +// (c) COPYRIGHT MIT, ERCIM and Keio University, 2011. // Please first read the full copyright statement in file COPYRIGHT.html -/* - */ package org.w3c.css.properties.css; import org.w3c.css.parser.CssStyle; -import org.w3c.css.properties.css1.Css1Style; +import org.w3c.css.properties.css2.Css2Style; import org.w3c.css.util.ApplContext; import org.w3c.css.util.InvalidParamException; import org.w3c.css.values.CssExpression; @@ -17,6 +14,7 @@ import org.w3c.css.values.CssValue; /** + * @since CSS2 */ public class CssDirection extends CssProperty { @@ -88,7 +86,7 @@ * @param style The CssStyle */ public void addToStyle(ApplContext ac, CssStyle style) { - Css1Style style0 = (Css1Style) style; + Css2Style style0 = (Css2Style) style; if (style0.cssDirection != null) style0.addRedefinitionWarning(ac, this); style0.cssDirection = this; @@ -102,9 +100,9 @@ */ public CssProperty getPropertyInStyle(CssStyle style, boolean resolve) { if (resolve) { - return ((Css1Style) style).getDirection(); + return ((Css2Style) style).getDirection(); } else { - return ((Css1Style) style).cssDirection; + return ((Css2Style) style).cssDirection; } }
Received on Monday, 5 November 2012 13:43:33 UTC