]> gitweb.michael.orlitzky.com - libsvgtiny.git/commitdiff
src/svgtiny_css.c: implement ua_default_for_property() select handler
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 17 Oct 2023 02:04:15 +0000 (22:04 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 20 Nov 2023 16:42:26 +0000 (11:42 -0500)
src/svgtiny_css.c

index dc2a613ea7878a933121885b066ae59d31879582..687a113b6e346e02c392707c4ffc049980b1bf62 100644 (file)
@@ -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;
+}