diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2021-03-22 17:47:11 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2021-05-19 14:40:54 +0100 |
commit | ecf42afc3329b03ee642ede84f9ba224d2aff1e1 (patch) | |
tree | f147bfabd58888c1f9fd2bd98c14b840314eb5ed /src/select/hash.c | |
parent | 65d4fd6e83d421e7fa7a8c7df44d01797e3c69ae (diff) | |
download | libcss-ecf42afc3329b03ee642ede84f9ba224d2aff1e1.tar.gz libcss-ecf42afc3329b03ee642ede84f9ba224d2aff1e1.tar.bz2 |
Selection: Don't duplicate unit conversion members in media descriptor.
Diffstat (limited to 'src/select/hash.c')
-rw-r--r-- | src/select/hash.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/select/hash.c b/src/select/hash.c index 4dedec9..16aebf7 100644 --- a/src/select/hash.c +++ b/src/select/hash.c @@ -370,7 +370,7 @@ css_error css__selector_hash_find(css_selector_hash *hash, head->sel_chain_bloom, req->node_bloom) && mq_rule_good_for_media(head->sel->rule, - req->media)) { + req->unit_ctx, req->media)) { /* Found a match */ break; } @@ -449,6 +449,7 @@ css_error css__selector_hash_find_by_class(css_selector_hash *hash, req->uni) && mq_rule_good_for_media( head->sel->rule, + req->unit_ctx, req->media)) { /* Found a match */ break; @@ -529,6 +530,7 @@ css_error css__selector_hash_find_by_id(css_selector_hash *hash, req->uni) && mq_rule_good_for_media( head->sel->rule, + req->unit_ctx, req->media)) { /* Found a match */ break; @@ -579,7 +581,7 @@ css_error css__selector_hash_find_universal(css_selector_hash *hash, head->sel_chain_bloom, req->node_bloom) && mq_rule_good_for_media(head->sel->rule, - req->media)) { + req->unit_ctx, req->media)) { /* Found a match */ break; } @@ -922,7 +924,7 @@ css_error _iterate_elements( head->sel_chain_bloom, req->node_bloom) && mq_rule_good_for_media(head->sel->rule, - req->media)) { + req->unit_ctx, req->media)) { /* Found a match */ break; } @@ -982,6 +984,7 @@ css_error _iterate_classes( req->uni) && mq_rule_good_for_media( head->sel->rule, + req->unit_ctx, req->media)) { /* Found a match */ break; @@ -1043,6 +1046,7 @@ css_error _iterate_ids( req->uni) && mq_rule_good_for_media( head->sel->rule, + req->unit_ctx, req->media)) { /* Found a match */ break; @@ -1086,7 +1090,7 @@ css_error _iterate_universal( head->sel_chain_bloom, req->node_bloom) && mq_rule_good_for_media(head->sel->rule, - req->media)) { + req->unit_ctx, req->media)) { /* Found a match */ break; } |