]> 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, 9 Jun 2025 01:13:06 +0000 (21:13 -0400)
src/svgtiny_css.c

index c9ded38f48c16016321df57b860a38b354868714..200e5b3897816db1d32af6ff14350838cb30e555 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);
 
 
 /**
@@ -1740,3 +1742,25 @@ static css_error node_is_lang(void *pw, void *node,
        lwc_string_unref(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;
+}