diff options
Diffstat (limited to 'src/select/properties/outline_width.c')
-rw-r--r-- | src/select/properties/outline_width.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/select/properties/outline_width.c b/src/select/properties/outline_width.c index 4d9101c..0289c57 100644 --- a/src/select/properties/outline_width.c +++ b/src/select/properties/outline_width.c @@ -41,17 +41,10 @@ css_error css__compose_outline_width(const css_computed_style *parent, css_unit unit = CSS_UNIT_PX; uint8_t type = get_outline_width(child, &length, &unit); - if ((child->i.uncommon == NULL && parent->i.uncommon != NULL) || - type == CSS_OUTLINE_WIDTH_INHERIT || - (child->i.uncommon != NULL && result != child)) { - if ((child->i.uncommon == NULL && parent->i.uncommon != NULL) || - type == CSS_OUTLINE_WIDTH_INHERIT) { - type = get_outline_width(parent, &length, &unit); - } - - return set_outline_width(result, type, length, unit); + if (type == CSS_OUTLINE_WIDTH_INHERIT) { + type = get_outline_width(parent, &length, &unit); } - return CSS_OK; + return set_outline_width(result, type, length, unit); } |