private ContentToken evaluateFunction(final CSSFunctionValue function,
final LayoutProcess process,
final LayoutElement element)
{
final ContentFunction styleFunction =
FunctionFactory.getInstance().getContentFunction(function.getFunctionName());
if (styleFunction == null)
{
return null;
}
try
{
return styleFunction.evaluate(process, element, function);
}
catch (FunctionEvaluationException e)
{
DebugLog.log("Evaluation failed " + e);
return null;