summaryrefslogtreecommitdiff
path: root/source/html/css-parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/html/css-parse.c')
-rw-r--r--source/html/css-parse.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/source/html/css-parse.c b/source/html/css-parse.c
index abe20e74..e3ddd48f 100644
--- a/source/html/css-parse.c
+++ b/source/html/css-parse.c
@@ -70,19 +70,19 @@ static fz_css_value *fz_new_css_value(fz_context *ctx, int type, const char *dat
return val;
}
-static void fz_free_css_value(fz_context *ctx, fz_css_value *val)
+static void fz_drop_css_value(fz_context *ctx, fz_css_value *val)
{
while (val)
{
fz_css_value *next = val->next;
- fz_free_css_value(ctx, val->args);
+ fz_drop_css_value(ctx, val->args);
fz_free(ctx, val->data);
fz_free(ctx, val);
val = next;
}
}
-static void fz_free_css_condition(fz_context *ctx, fz_css_condition *cond)
+static void fz_drop_css_condition(fz_context *ctx, fz_css_condition *cond)
{
while (cond)
{
@@ -94,40 +94,40 @@ static void fz_free_css_condition(fz_context *ctx, fz_css_condition *cond)
}
}
-static void fz_free_css_selector(fz_context *ctx, fz_css_selector *sel)
+static void fz_drop_css_selector(fz_context *ctx, fz_css_selector *sel)
{
while (sel)
{
fz_css_selector *next = sel->next;
fz_free(ctx, sel->name);
- fz_free_css_condition(ctx, sel->cond);
- fz_free_css_selector(ctx, sel->left);
- fz_free_css_selector(ctx, sel->right);
+ fz_drop_css_condition(ctx, sel->cond);
+ fz_drop_css_selector(ctx, sel->left);
+ fz_drop_css_selector(ctx, sel->right);
fz_free(ctx, sel);
sel = next;
}
}
-static void fz_free_css_property(fz_context *ctx, fz_css_property *prop)
+static void fz_drop_css_property(fz_context *ctx, fz_css_property *prop)
{
while (prop)
{
fz_css_property *next = prop->next;
fz_free(ctx, prop->name);
- fz_free_css_value(ctx, prop->value);
+ fz_drop_css_value(ctx, prop->value);
fz_free(ctx, prop);
prop = next;
}
}
-void fz_free_css(fz_context *ctx, fz_css_rule *rule)
+void fz_drop_css(fz_context *ctx, fz_css_rule *rule)
{
while (rule)
{
fz_css_rule *next = rule->next;
- fz_free_css_selector(ctx, rule->selector);
- fz_free_css_property(ctx, rule->declaration);
- fz_free_css_property(ctx, rule->garbage);
+ fz_drop_css_selector(ctx, rule->selector);
+ fz_drop_css_property(ctx, rule->declaration);
+ fz_drop_css_property(ctx, rule->garbage);
fz_free(ctx, rule);
rule = next;
}