final int length = list.getLength();
if (length == 0)
{
return;
}
final BackgroundSpecification backgroundSpecification =
currentNode.getLayoutContext().getBackgroundSpecification();
for (int i = 0; i < length; i++)
{
final CSSValue item = list.getItem(i);
if (item instanceof CSSValuePair == false)
{
backgroundSpecification.setBackgroundRepeat
(i, EMPTY_BACKGROUND_REPEAT);
}
else
{
final CSSValuePair bvalue = (CSSValuePair) item;
backgroundSpecification.setBackgroundRepeat(i, bvalue);
}
}
}