diff options
-rw-r--r-- | src/select/select.c | 2 | ||||
-rw-r--r-- | src/stylesheet.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/select/select.c b/src/select/select.c index 890ac29..983d77e 100644 --- a/src/select/select.c +++ b/src/select/select.c @@ -522,8 +522,8 @@ css_error select_from_sheet(css_select_ctx *ctx, const css_stylesheet *sheet, /* Find next sheet to process */ if (s->ownerRule != NULL) { - s = s->ownerRule->parent; rule = s->ownerRule->next; + s = s->ownerRule->parent; } else { s = NULL; } diff --git a/src/stylesheet.c b/src/stylesheet.c index 5102031..9a5b9a0 100644 --- a/src/stylesheet.c +++ b/src/stylesheet.c @@ -339,6 +339,8 @@ css_error css_stylesheet_register_import(css_stylesheet *parent, if (r->type == CSS_RULE_IMPORT && i->sheet == NULL) { i->sheet = import; + import->ownerRule = r; + return CSS_OK; } } |