mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-27 02:56:18 -04:00
[css] execute old css code, when libcss is disabled, but compiled-in
This commit is contained in:
parent
d86ce27523
commit
af20c0e7e8
@ -236,7 +236,9 @@ examine_element(struct html_context *html_context, struct css_selector *base,
|
|||||||
|
|
||||||
#ifdef CONFIG_CSS
|
#ifdef CONFIG_CSS
|
||||||
#ifdef CONFIG_LIBCSS
|
#ifdef CONFIG_LIBCSS
|
||||||
#else
|
if (!html_context->options->libcss_enable)
|
||||||
|
#endif
|
||||||
|
{
|
||||||
if (element->attr.class_ && seltype <= CST_CLASS) {
|
if (element->attr.class_ && seltype <= CST_CLASS) {
|
||||||
const char *class_ = element->attr.class_;
|
const char *class_ = element->attr.class_;
|
||||||
|
|
||||||
@ -258,7 +260,7 @@ examine_element(struct html_context *html_context, struct css_selector *base,
|
|||||||
selector = find_css_selector(selectors, CST_ID, rel, element->attr.id, -1);
|
selector = find_css_selector(selectors, CST_ID, rel, element->attr.id, -1);
|
||||||
process_found_selector(selector, CST_ID, base);
|
process_found_selector(selector, CST_ID, base);
|
||||||
}
|
}
|
||||||
#endif
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#undef process_found_selector
|
#undef process_found_selector
|
||||||
|
Loading…
Reference in New Issue
Block a user