final CSSValue item = valueList.getItem(i);
if (item instanceof CSSValuePair == false)
{
continue;
}
final CSSValuePair counter = (CSSValuePair) item;
final CSSValue counterName = counter.getFirstValue();
if (counterName instanceof CSSConstant == false)
{
continue;
}
final CSSValue counterValue = counter.getSecondValue();
final int counterIntValue = parseCounterValue(counterValue, element);
element.incrementCounter(counterName.getCSSText(), counterIntValue);
}
}