- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 31 Aug 2012 13:52:10 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3
In directory hutz:/tmp/cvs-serv15581/css3
Modified Files:
Css3Style.java
Added Files:
CssTextEmphasisColor.java
Log Message:
text-emphasis-color per http://www.w3.org/TR/2012/WD-css3-text-20120814/#text-emphasis-color0
Index: Css3Style.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css3/Css3Style.java,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- Css3Style.java 31 Aug 2012 13:34:13 -0000 1.53
+++ Css3Style.java 31 Aug 2012 13:52:08 -0000 1.54
@@ -45,6 +45,7 @@
import org.w3c.css.properties.css.CssTextAlignLast;
import org.w3c.css.properties.css.CssTextDecorationColor;
import org.w3c.css.properties.css.CssTextDecorationStyle;
+import org.w3c.css.properties.css.CssTextEmphasisColor;
import org.w3c.css.properties.css.CssTextJustify;
import org.w3c.css.properties.css.CssWordBreak;
import org.w3c.css.util.ApplContext;
@@ -145,6 +146,7 @@
public CssTextJustify cssTextJustify;
public CssTextDecorationStyle cssTextDecorationStyle;
public CssTextDecorationColor cssTextDecorationColor;
+ public CssTextEmphasisColor cssTextEmphasisColor;
CssDropInitialAfterAdjust cssDropInitialAfterAdjust;
CssDropInitialAfterAlign cssDropInitialAfterAlign;
@@ -1419,6 +1421,15 @@
return cssTextDecorationColor;
}
+ public CssTextEmphasisColor getTextEmphasisColor() {
+ if (cssTextEmphasisColor == null) {
+ cssTextEmphasisColor =
+ (CssTextEmphasisColor) style.CascadingOrder(
+ new CssTextEmphasisColor(), style, selector);
+ }
+ return cssTextEmphasisColor;
+ }
+
///
public CssTextIndentCSS3 getTextIndentCSS3() {
--- NEW FILE: CssTextEmphasisColor.java ---
// $Id: CssTextEmphasisColor.java,v 1.1 2012/08/31 13:52:08 ylafon Exp $
// Author: Yves Lafon <ylafon@w3.org>
//
// (c) COPYRIGHT MIT, ERCIM and Keio University, 2012.
// Please first read the full copyright statement in file COPYRIGHT.html
package org.w3c.css.properties.css3;
import org.w3c.css.util.ApplContext;
import org.w3c.css.util.InvalidParamException;
import org.w3c.css.values.CssExpression;
import org.w3c.css.values.CssValue;
/**
* @spec http://www.w3.org/TR/2012/WD-css3-text-20120814/#text-emphasis-color0
*/
public class CssTextEmphasisColor extends org.w3c.css.properties.css.CssTextEmphasisColor {
/**
* Create a new CssTextEmphasisColor
*/
public CssTextEmphasisColor() {
value = initial;
}
/**
* Creates a new CssTextEmphasisColor
*
* @param expression The expression for this property
* @throws org.w3c.css.util.InvalidParamException
* Expressions are incorrect
*/
public CssTextEmphasisColor(ApplContext ac, CssExpression expression, boolean check)
throws InvalidParamException {
setByUser();
CssValue val = expression.getValue();
if (check && expression.getCount() > 1) {
throw new InvalidParamException("unrecognize", ac);
}
if (inherit.equals(val)) {
value = inherit;
expression.next();
} else {
try {
CssColor tcolor = new CssColor(ac, expression, check);
value = tcolor.color;
} catch (InvalidParamException e) {
throw new InvalidParamException("value",
expression.getValue(),
getPropertyName(), ac);
}
}
}
public CssTextEmphasisColor(ApplContext ac, CssExpression expression)
throws InvalidParamException {
this(ac, expression, false);
}
}
Received on Friday, 31 August 2012 13:52:20 UTC