summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parse/language.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/parse/language.c b/src/parse/language.c
index 364192a..01dd3fc 100644
--- a/src/parse/language.c
+++ b/src/parse/language.c
@@ -1049,15 +1049,13 @@ css_error parseProperty(css_language *c, const css_token *property,
if (error != CSS_OK)
return error;
- /** \todo we should probably assert this, but until we've implemented
- * all the property parsers, this will have to suffice. */
- if (style != NULL) {
- /* Append style to rule */
- error = css_stylesheet_rule_append_style(c->sheet, rule, style);
- if (error != CSS_OK) {
- css_stylesheet_style_destroy(c->sheet, style);
- return error;
- }
+ assert (style != NULL);
+
+ /* Append style to rule */
+ error = css_stylesheet_rule_append_style(c->sheet, rule, style);
+ if (error != CSS_OK) {
+ css_stylesheet_style_destroy(c->sheet, style);
+ return error;
}
/* Style owned or destroyed by stylesheet, so forget about it */