summaryrefslogtreecommitdiff
path: root/src/select/properties/outline_color.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/select/properties/outline_color.c')
-rw-r--r--src/select/properties/outline_color.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/select/properties/outline_color.c b/src/select/properties/outline_color.c
index c6c576b..97846ac 100644
--- a/src/select/properties/outline_color.c
+++ b/src/select/properties/outline_color.c
@@ -65,17 +65,9 @@ css_error css__compose_outline_color(const css_computed_style *parent,
css_color color = 0;
uint8_t type = get_outline_color(child, &color);
- if ((child->i.uncommon == NULL && parent->i.uncommon != NULL) ||
- type == CSS_OUTLINE_COLOR_INHERIT ||
- (child->i.uncommon != NULL && result != child)) {
- if ((child->i.uncommon == NULL && parent->i.uncommon != NULL) ||
- type == CSS_OUTLINE_COLOR_INHERIT) {
- type = get_outline_color(parent, &color);
- }
-
- return set_outline_color(result, type, color);
+ if (type == CSS_OUTLINE_COLOR_INHERIT) {
+ type = get_outline_color(parent, &color);
}
- return CSS_OK;
+ return set_outline_color(result, type, color);
}
-