- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 08 Nov 2012 15:54:42 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/values
In directory hutz:/tmp/cvs-serv21761
Modified Files:
CssImage.java
Log Message:
repeating-linear-gradient
Index: CssImage.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/values/CssImage.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- CssImage.java 8 Nov 2012 14:06:59 -0000 1.2
+++ CssImage.java 8 Nov 2012 15:54:40 -0000 1.3
@@ -141,6 +141,30 @@
throws InvalidParamException {
name = "linear-gradient";
_cache = null;
+ _setLinearGradient(exp, ac);
+ }
+
+ /**
+ * @param exp
+ * @param ac
+ * @throws InvalidParamException
+ * @spec http://www.w3.org/TR/2012/CR-css3-images-20120417/#linear-gradient-type
+ */
+ public void setRepeatingLinearGradient(CssExpression exp, ApplContext ac)
+ throws InvalidParamException {
+ name = "repeating-linear-gradient";
+ _cache = null;
+ _setLinearGradient(exp, ac);
+ }
+
+ /**
+ * @param exp
+ * @param ac
+ * @throws InvalidParamException
+ * @spec http://www.w3.org/TR/2012/CR-css3-images-20120417/#linear-gradient-type
+ */
+ private void _setLinearGradient(CssExpression exp, ApplContext ac)
+ throws InvalidParamException {
// ImageList defined in CSS3 and onward
if (ac.getCssVersion().compareTo(CssVersion.CSS3) < 0) {
StringBuilder sb = new StringBuilder();
Received on Thursday, 8 November 2012 15:54:47 UTC