From b4f9d156c89d7fabb50cf7397acaa124593938bc Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 30 Jun 2009 10:08:08 +0000 Subject: Introduce an initial value of border-*-color in the computed style. When a style is composed, this will be resolved to whatever color: computed to. svn path=/trunk/libcss/; revision=8184 --- src/select/properties.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/select/properties.c b/src/select/properties.c index 2d950be..788c102 100644 --- a/src/select/properties.c +++ b/src/select/properties.c @@ -519,7 +519,7 @@ css_error set_border_top_color_from_hint(const css_hint *hint, css_error initial_border_top_color(css_computed_style *style) { - return set_border_top_color(style, CSS_BORDER_COLOR_COLOR, 0); + return set_border_top_color(style, CSS_BORDER_COLOR_INITIAL, 0); } css_error compose_border_top_color(const css_computed_style *parent, @@ -553,7 +553,7 @@ css_error set_border_right_color_from_hint(const css_hint *hint, css_error initial_border_right_color(css_computed_style *style) { - return set_border_right_color(style, CSS_BORDER_COLOR_COLOR, 0); + return set_border_right_color(style, CSS_BORDER_COLOR_INITIAL, 0); } css_error compose_border_right_color(const css_computed_style *parent, @@ -587,7 +587,7 @@ css_error set_border_bottom_color_from_hint(const css_hint *hint, css_error initial_border_bottom_color(css_computed_style *style) { - return set_border_bottom_color(style, CSS_BORDER_COLOR_COLOR, 0); + return set_border_bottom_color(style, CSS_BORDER_COLOR_INITIAL, 0); } css_error compose_border_bottom_color(const css_computed_style *parent, @@ -621,7 +621,7 @@ css_error set_border_left_color_from_hint(const css_hint *hint, css_error initial_border_left_color(css_computed_style *style) { - return set_border_left_color(style, CSS_BORDER_COLOR_COLOR, 0); + return set_border_left_color(style, CSS_BORDER_COLOR_INITIAL, 0); } css_error compose_border_left_color(const css_computed_style *parent, -- cgit v1.2.3