final StyleProperties properties, final boolean specified) {
final MutablePropertyValues values =
styles.getPropertyValues();
if (properties != null) {
values.iterateStyleProperties(new StylePropertyIteratee() {
public IterationAction next(StyleProperty property) {
StyleValue value = properties.getStyleValue(property);
values.setComputedValue(property, value);
if (specified) {
values.setSpecifiedValue(property, value);