summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2015-01-02 15:14:41 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2015-01-02 15:14:41 (GMT)
commitd22595283b7e619d2552ea71b5c1e0d867c920a2 (patch)
tree48d0bbe7fc292aae63346475b66facfd92548536
parentb18347b24b31bacdb283aa036fa4880384b4c6be (diff)
downloadlibcss-d22595283b7e619d2552ea71b5c1e0d867c920a2.tar.gz
libcss-d22595283b7e619d2552ea71b5c1e0d867c920a2.tar.bz2
Avoid duplicate get_column_rule_color call.
-rw-r--r--src/select/computed.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/select/computed.c b/src/select/computed.c
index 6bf1344..11149c7 100644
--- a/src/select/computed.c
+++ b/src/select/computed.c
@@ -841,10 +841,8 @@ uint8_t css_computed_column_rule_color(const css_computed_style *style,
if (get_column_rule_color(style, color) ==
CSS_COLUMN_RULE_COLOR_CURRENT_COLOR) {
css_computed_color(style, color);
-
- return CSS_COLUMN_RULE_COLOR_COLOR;
}
- return get_column_rule_color(style, color);
+ return CSS_COLUMN_RULE_COLOR_COLOR;
}
uint8_t css_computed_column_rule_style(const css_computed_style *style)