1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

Bug 963: Correct reversed logic for document.css.ignore_display_none

When this option is enabled, elements should be rendered even when the CSS
display attribute is "none".  Before this commit, the reverse was true:
when the option was enabled, such elements were _not_ rendered.

I am not changing the default, which is enabled, meaning that by default,
ELinks renders elements regardless of "display: none".  Pasky advocates
that this remain the default until ELinks's CSS support improves.

This commit fixes the first problem that Kalle points out in comment 5 to
bug 963.
This commit is contained in:
Miciah Dashiel Butler Masters 2008-05-23 02:44:11 +00:00 committed by Miciah Dashiel Butler Masters
parent 9af30f13b9
commit cadd2ecc10

View File

@ -77,7 +77,7 @@ css_apply_display(struct html_context *html_context, struct html_element *elemen
element->linebreak = 2;
break;
case CSS_DISP_NONE:
if (html_context->options->css_ignore_display_none)
if (!html_context->options->css_ignore_display_none)
element->invisible = 1;
break;
default: