if (!lu.getFunctionName().equalsIgnoreCase("rect")) {
break;
}
case LexicalUnit.SAC_RECT_FUNCTION:
lu = lu.getParameters();
CSSPrimitiveValue t;
t = (CSSPrimitiveValue)factory.createCSSValue(lu);
lu = lu.getNextLexicalUnit();
if (lu == null ||
lu.getLexicalUnitType() != LexicalUnit.SAC_OPERATOR_COMMA) {
throw new DOMException
(DOMException.INVALID_ACCESS_ERR,
StyleAttributeParser.LOCALIZABLE_SUPPORT.formatMessage
("invalid.lexical.unit",
new Object[] { new Integer(lu.getLexicalUnitType()) }));
}
lu = lu.getNextLexicalUnit();
CSSPrimitiveValue r;
r = (CSSPrimitiveValue)factory.createCSSValue(lu);
lu = lu.getNextLexicalUnit();
if (lu == null ||
lu.getLexicalUnitType() != LexicalUnit.SAC_OPERATOR_COMMA) {
throw new DOMException
(DOMException.INVALID_ACCESS_ERR,
StyleAttributeParser.LOCALIZABLE_SUPPORT.formatMessage
("invalid.lexical.unit",
new Object[] { new Integer(lu.getLexicalUnitType()) }));
}
lu = lu.getNextLexicalUnit();
CSSPrimitiveValue b;
b = (CSSPrimitiveValue)factory.createCSSValue(lu);
lu = lu.getNextLexicalUnit();
if (lu == null ||
lu.getLexicalUnitType() != LexicalUnit.SAC_OPERATOR_COMMA) {
throw new DOMException
(DOMException.INVALID_ACCESS_ERR,
StyleAttributeParser.LOCALIZABLE_SUPPORT.formatMessage
("invalid.lexical.unit",
new Object[] { new Integer(lu.getLexicalUnitType()) }));
}
lu = lu.getNextLexicalUnit();
CSSPrimitiveValue l;
l = (CSSPrimitiveValue)factory.createCSSValue(lu);
return new CSSRectValue(t, r, b, l);
}
throw new DOMException
(DOMException.INVALID_ACCESS_ERR,