System/Libraries/Html/Renderer: Unset node->display_block based on CSS value
This commit is contained in:
parent
e3d6121fe3
commit
e60ffee006
1 changed files with 8 additions and 2 deletions
|
@ -378,8 +378,14 @@ Bool @apply_css_rules_to_node(@html_dom_node* node, HtmlRenderer* renderer)
|
||||||
for (j = 0; j < properties->length; j++) {
|
for (j = 0; j < properties->length; j++) {
|
||||||
values = properties->@(key->name);
|
values = properties->@(key->name);
|
||||||
|
|
||||||
if (!StrICmp(key->name, "display") && !StrICmp(values->@(0), "none"))
|
if (!StrICmp(key->name, "display")) {
|
||||||
return FALSE;
|
if (!StrICmp(values->@(0), "none")) {
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
if (StrICmp(values->@(0), "block")) {
|
||||||
|
node->display_block = FALSE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!StrICmp(key->name, "background") || !StrICmp(key->name, "background-color")) {
|
if (!StrICmp(key->name, "background") || !StrICmp(key->name, "background-color")) {
|
||||||
if (@css_named_colors->@(values->@(0))) {
|
if (@css_named_colors->@(values->@(0))) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue