From a018a75d6703a05840925313792078311e784a23 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 16 Apr 2012 13:32:42 +0000 Subject: Border width hint is concerned with border attribute, not width attribute. Fixes table borders. svn path=/trunk/netsurf/; revision=13874 --- css/select.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'css/select.c') diff --git a/css/select.c b/css/select.c index 918eeab0e..026aedc7c 100644 --- a/css/select.c +++ b/css/select.c @@ -2208,8 +2208,7 @@ node_presentational_hint_border_trbl_width(nscss_select_ctx *ctx, lwc_string_unref(qs.name); if (tablenode != NULL) { exc = dom_element_get_attribute(tablenode, - nscss_dom_string_width, - &width); + nscss_dom_string_border, &width); if (exc != DOM_NO_ERR) { dom_string_unref(name); return CSS_BADPARM; @@ -2220,8 +2219,8 @@ node_presentational_hint_border_trbl_width(nscss_select_ctx *ctx, */ is_table_cell = true; } else if (dom_string_isequal(name, nscss_dom_string_table)) { - exc = dom_element_get_attribute(node, nscss_dom_string_width, - &width); + exc = dom_element_get_attribute(node, nscss_dom_string_border, + &width); if (exc != DOM_NO_ERR) { dom_string_unref(name); return CSS_BADPARM; -- cgit v1.2.3