// and the --ieCompat flag is enabled, return a normal url() instead.
int fileSizeInKB = data.length / 1024;
if (fileSizeInKB >= DATA_URI_MAX_KB) {
problemsHandler.warnIE8UnsafeDataUri(functionCall, filename, fileSizeInKB, DATA_URI_MAX_KB);
FunctionExpression result = new FunctionExpression(token, "url", functionCall.getParameter().clone());
result.configureParentToAllChilds();
return result;
}
return toDataUri(token, mimetype, data, fragments);