From: Michael Orlitzky Date: Tue, 17 Oct 2023 02:04:15 +0000 (-0400) Subject: src/svgtiny_css.c: implement ua_default_for_property() select handler X-Git-Url: http://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=055fe696680e65f48eaff2bb0149c7ea1e174192;p=libsvgtiny.git src/svgtiny_css.c: implement ua_default_for_property() select handler --- diff --git a/src/svgtiny_css.c b/src/svgtiny_css.c index dc2a613..687a113 100644 --- a/src/svgtiny_css.c +++ b/src/svgtiny_css.c @@ -56,6 +56,8 @@ static css_error node_is_checked(void *pw, void *node, bool *is_checked); static css_error node_is_target(void *pw, void *node, bool *is_target); static css_error node_is_lang(void *pw, void *node, lwc_string *lang, bool *is_lang); +static css_error ua_default_for_property(void *pw, uint32_t property, + css_hint *hint); /** @@ -1742,3 +1744,25 @@ static css_error node_is_lang(void *pw, void *node, lwc_string_destroy(attr.name); return CSS_OK; } + + +/** + * User-agent defaults for CSS properties + * + * For the moment, we provide no defaults, because libsvgtiny does not + * yet support any CSS properties that might need them. + * + * \param pw Pointer to the current SVG parser state; unused + * \param property LibCSS property identifier; unused + * \param hint Pointer to hint object (a return value); unused + * + * \return Always returns CSS_INVALID + */ +css_error ua_default_for_property(void *pw, uint32_t property, + css_hint *hint) +{ + UNUSED(pw); + UNUSED(property); + UNUSED(hint); + return CSS_INVALID; +}