CSSEngine engine,
int idx,
StyleMap sm,
Value value) {
if (value.getCssValueType() == CSSValue.CSS_VALUE_LIST) {
ListValue lv = (ListValue)value;
if (lv.getLength() == 5) {
Value lv1 = lv.item(1);
orientation = HORIZONTAL_ORIENTATION;
Value v1 = super.computeValue(elt, pseudo, engine,
idx, sm, lv1);
Value lv2 = lv.item(2);
orientation = VERTICAL_ORIENTATION;
Value v2 = super.computeValue(elt, pseudo, engine,
idx, sm, lv2);
Value lv3 = lv.item(3);
orientation = HORIZONTAL_ORIENTATION;
Value v3 = super.computeValue(elt, pseudo, engine,
idx, sm, lv3);
Value lv4 = lv.item(4);
orientation = VERTICAL_ORIENTATION;
Value v4 = super.computeValue(elt, pseudo, engine,
idx, sm, lv4);
if (lv1 != v1 || lv2 != v2 ||
lv3 != v3 || lv4 != v4) {
ListValue result = new ListValue(' ');
result.append(lv.item(0));
result.append(v1);
result.append(v2);
result.append(v3);
result.append(v4);
return result;
}
}
}
return value;