private Styles createInheritedStyles(
Iterator iterator, StyleValues parentValues,
StyleKeyword display) {
InitialValueFinder initialValueFinder = new InitialValueFinder();
Styles styles = new StylesImpl();
MutablePropertyValues propertyValues = styles.getPropertyValues();
while (iterator.hasNext()) {
StyleProperty property = (StyleProperty) iterator.next();
StyleValue value;
if (property.getStandardDetails().isInherited()) {
value = parentValues.getStyleValue(property);
} else {
value = initialValueFinder.getInitialValue(
propertyValues, property.getStandardDetails());
}
propertyValues.setComputedValue(property, value);
}