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

2002/css-validator/org/w3c/css/parser/analyzer CssParser.jj,1.88,1.89

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 07 Nov 2012 14:18:53 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1TW6Sz-00039I-V8@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/parser/analyzer
In directory hutz:/tmp/cvs-serv12088

Modified Files:
	CssParser.jj 
Log Message:
add color generation at parsing time

Index: CssParser.jj
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/analyzer/CssParser.jj,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -d -r1.88 -r1.89
--- CssParser.jj	18 Oct 2012 09:42:55 -0000	1.88
+++ CssParser.jj	7 Nov 2012 14:18:51 -0000	1.89
@@ -2443,6 +2443,15 @@
 	if (funcname.equals("rgb(")) {
 	    color.setRGBColor(exp, ac);
 	    return color;
+	} else if (funcname.equals("rgba(")) {
+	    color.setRGBAColor(exp, ac);
+	    return color;
+	} else if (funcname.equals("hsl(")) {
+	    color.setHSLColor(exp, ac);
+	    return color;
+	} else if (funcname.equals("hsla(")) {
+	    color.setHSLAColor(exp, ac);
+	    return color;
 	} else if (funcname.equals("atsc-rgba(")) {
 	    if (getAtRule().toString().equals("@media atsc-tv")) {
 	        color.setATSCRGBAColor(exp, ac);
Received on Wednesday, 7 November 2012 14:18:58 UTC

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