CVS 2002/css-validator/org/w3c/css/properties/css3

Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3
In directory roscoe:/tmp/cvs-serv21426/css3

Modified Files:
	Css3Style.java 
Added Files:
	CssImageOrientation.java 
Log Message:
image-orientation per http://www.w3.org/TR/2012/CR-css3-images-20120417/#image-orientation

--- /sources/public/2002/css-validator/org/w3c/css/properties/css3/Css3Style.java	2012/11/28 09:28:11	1.141
+++ /sources/public/2002/css-validator/org/w3c/css/properties/css3/Css3Style.java	2012/11/28 14:11:08	1.142
@@ -1,6 +1,6 @@
 //
 
-// $Id: Css3Style.java,v 1.141 2012/11/28 09:28:11 ylafon Exp $
+// $Id: Css3Style.java,v 1.142 2012/11/28 14:11:08 ylafon Exp $
 // From Sijtsche de Jong (sy.de.jong@let.rug.nl)
 //
 // COPYRIGHT (c) 1995-2000 World Wide Web Consortium, (MIT, INRIA, Keio University)
@@ -63,6 +63,7 @@
 import org.w3c.css.properties.css.CssHangingPunctuation;
 import org.w3c.css.properties.css.CssHyphens;
 import org.w3c.css.properties.css.CssIcon;
+import org.w3c.css.properties.css.CssImageOrientation;
 import org.w3c.css.properties.css.CssImeMode;
 import org.w3c.css.properties.css.CssJustifyContent;
 import org.w3c.css.properties.css.CssLineBreak;
@@ -235,6 +236,7 @@
 	
 	public CssObjectFit cssObjectFit;
 	public CssObjectPosition cssObjectPosition;
+	public CssImageOrientation cssImageOrientation;
 
 	CssDropInitialAfterAdjust cssDropInitialAfterAdjust;
 	CssDropInitialAfterAlign cssDropInitialAfterAlign;
@@ -1422,7 +1424,15 @@
 		}
 		return cssObjectPosition;
 	}
-	
+
+	public CssImageOrientation getImageOrientation() {
+		if (cssImageOrientation == null) {
+			cssImageOrientation =
+					(CssImageOrientation) style.CascadingOrder(
+							new CssImageOrientation(), style, selector);
+		}
+		return cssImageOrientation;
+	}
 	///
 
 	/**

--- /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssImageOrientation.java	2012/11/28 14:11:08	NONE
+++ /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssImageOrientation.java	2012/11/28 14:11:08	1.1
// $Id: CssImageOrientation.java,v 1.1 2012/11/28 14:11: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.CssTypes;
import org.w3c.css.values.CssValue;

/**
 * @spec http://www.w3.org/TR/2012/CR-css3-images-20120417/#image-orientation
 */
public class CssImageOrientation extends org.w3c.css.properties.css.CssImageOrientation {

	/**
	 * Create a new CssImageOrientation
	 */
	public CssImageOrientation() {
		value = initial;
	}

	/**
	 * Creates a new CssImageOrientation
	 *
	 * @param expression The expression for this property
	 * @throws org.w3c.css.util.InvalidParamException
	 *          Expressions are incorrect
	 */
	public CssImageOrientation(ApplContext ac, CssExpression expression, boolean check)
			throws InvalidParamException {
		if (check && expression.getCount() > 1) {
			throw new InvalidParamException("unrecognize", ac);
		}
		setByUser();

		CssValue val;
		char op;

		val = expression.getValue();
		op = expression.getOperator();

		switch (val.getType()) {
			case CssTypes.CSS_ANGLE:
				value = val;
				break;
			case CssTypes.CSS_IDENT:
				if (inherit.equals(val)) {
					value = inherit;
					break;
				}
			default:
				throw new InvalidParamException("value",
						val.toString(),
						getPropertyName(), ac);
		}
		expression.next();
	}

	public CssImageOrientation(ApplContext ac, CssExpression expression)
			throws InvalidParamException {
		this(ac, expression, false);
	}

}

Received on Wednesday, 28 November 2012 14:11:13 UTC