diff options
Diffstat (limited to 'src/select/properties/column_gap.c')
-rw-r--r-- | src/select/properties/column_gap.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/select/properties/column_gap.c b/src/select/properties/column_gap.c index 824b3a4..087eb0f 100644 --- a/src/select/properties/column_gap.c +++ b/src/select/properties/column_gap.c @@ -41,17 +41,9 @@ css_error css__compose_column_gap(const css_computed_style *parent, css_unit unit = CSS_UNIT_EM; uint8_t type = get_column_gap(child, &length, &unit); - if ((child->i.uncommon == NULL && parent->i.uncommon != NULL) || - type == CSS_COLUMN_GAP_INHERIT || - (child->i.uncommon != NULL && result != child)) { - if ((child->i.uncommon == NULL && parent->i.uncommon != NULL) || - type == CSS_COLUMN_GAP_INHERIT) { - type = get_column_gap(parent, &length, &unit); - } - - return set_column_gap(result, type, length, unit); + if (type == CSS_COLUMN_GAP_INHERIT) { + type = get_column_gap(parent, &length, &unit); } - return CSS_OK; + return set_column_gap(result, type, length, unit); } - |