// Javadoc inherited
public StyleValue postProcess(final StyleValue value) {
StyleValue processed = value;
if (value instanceof StyleList) {
StyleList list = (StyleList) value;
List values = list.getList();
List processedValues = new ArrayList();
boolean changed = false;
Iterator it = values.iterator();
while (it.hasNext()) {
StyleValue listValue = (StyleValue) it.next();
StyleValue listValueProcessed = processor.postProcess(listValue);
processedValues.add(listValueProcessed);
if (listValue != listValueProcessed) {
changed = true;
}
}
if (changed) {
StyleList processedList =
STYLE_VALUE_FACTORY.getList(processedValues);
processed = processedList;
}
}
return processed;