struct svgtiny_parse_state state)
{
css_stylesheet *sheet;
- css_stylesheet_params params;
css_error code;
dom_exception exc;
- params.params_version = CSS_STYLESHEET_PARAMS_VERSION_1;
- params.level = CSS_LEVEL_DEFAULT;
- params.charset = NULL;
- params.url = "";
- params.title = NULL;
- params.allow_quirks = false;
- params.inline_style = false;
- params.resolve = svgtiny_resolve_url;
- params.resolve_pw = NULL;
- params.import = NULL;
- params.import_pw = NULL;
- params.color = NULL;
- params.color_pw = NULL;
- params.font = NULL;
- params.font_pw = NULL;
-
- code = css_stylesheet_create(¶ms, &sheet);
+ code = svgtiny_create_stylesheet(&sheet, false);
if (code != CSS_OK) {
return svgtiny_LIBCSS_ERROR;
}