diff options
Diffstat (limited to 'src/parse/properties/table.c')
-rw-r--r-- | src/parse/properties/table.c | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/src/parse/properties/table.c b/src/parse/properties/table.c index 51f3bdc..61c0d85 100644 --- a/src/parse/properties/table.c +++ b/src/parse/properties/table.c @@ -45,18 +45,15 @@ css_error parse_caption_side(css_language *c, return CSS_INVALID; } - if ((lwc_context_string_caseless_isequal( - c->sheet->dictionary, + if ((lwc_string_caseless_isequal( ident->idata, c->strings[INHERIT], &match) == lwc_error_ok && match)) { flags |= FLAG_INHERIT; - } else if ((lwc_context_string_caseless_isequal( - c->sheet->dictionary, + } else if ((lwc_string_caseless_isequal( ident->idata, c->strings[TOP], &match) == lwc_error_ok && match)) { value = CAPTION_SIDE_TOP; - } else if ((lwc_context_string_caseless_isequal( - c->sheet->dictionary, + } else if ((lwc_string_caseless_isequal( ident->idata, c->strings[BOTTOM], &match) == lwc_error_ok && match)) { value = CAPTION_SIDE_BOTTOM; @@ -113,18 +110,15 @@ css_error parse_empty_cells(css_language *c, return CSS_INVALID; } - if ((lwc_context_string_caseless_isequal( - c->sheet->dictionary, + if ((lwc_string_caseless_isequal( ident->idata, c->strings[INHERIT], &match) == lwc_error_ok && match)) { flags |= FLAG_INHERIT; - } else if ((lwc_context_string_caseless_isequal( - c->sheet->dictionary, + } else if ((lwc_string_caseless_isequal( ident->idata, c->strings[SHOW], &match) == lwc_error_ok && match)) { value = EMPTY_CELLS_SHOW; - } else if ((lwc_context_string_caseless_isequal( - c->sheet->dictionary, + } else if ((lwc_string_caseless_isequal( ident->idata, c->strings[HIDE], &match) == lwc_error_ok && match)) { value = EMPTY_CELLS_HIDE; @@ -181,18 +175,15 @@ css_error parse_table_layout(css_language *c, return CSS_INVALID; } - if ((lwc_context_string_caseless_isequal( - c->sheet->dictionary, + if ((lwc_string_caseless_isequal( ident->idata, c->strings[INHERIT], &match) == lwc_error_ok && match)) { flags |= FLAG_INHERIT; - } else if ((lwc_context_string_caseless_isequal( - c->sheet->dictionary, + } else if ((lwc_string_caseless_isequal( ident->idata, c->strings[AUTO], &match) == lwc_error_ok && match)) { value = TABLE_LAYOUT_AUTO; - } else if ((lwc_context_string_caseless_isequal( - c->sheet->dictionary, + } else if ((lwc_string_caseless_isequal( ident->idata, c->strings[FIXED], &match) == lwc_error_ok && match)) { value = TABLE_LAYOUT_FIXED; |