diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-12-11 21:24:11 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-12-11 21:24:11 +0100 |
commit | 303b90ca689c5f2ce1b1ba60f4edcbbfb9061108 (patch) | |
tree | 50e64d8fad4222c17ddb085ace0905fc65dc3945 /src/table.cc | |
parent | be685e429d1f884df7270ae101223c81b9f8338c (diff) |
fix table border width
Diffstat (limited to 'src/table.cc')
-rw-r--r-- | src/table.cc | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/table.cc b/src/table.cc index 123bd6e9..82b6beb2 100644 --- a/src/table.cc +++ b/src/table.cc @@ -96,8 +96,6 @@ void Html_tag_open_table(DilloHtml *html, const char *tag, int tagsize) props.set (CssProperty::CSS_PROPERTY_TEXT_ALIGN, TEXT_ALIGN_CENTER); } - /** \todo figure out how to handle shaded colors with CSS */ - if ((attrbuf = a_Html_get_attr(html, tag, tagsize, "bgcolor"))) { bgcolor = a_Html_color_parse(html, attrbuf, -1); if (bgcolor != -1) { @@ -112,15 +110,7 @@ void Html_tag_open_table(DilloHtml *html, const char *tag, int tagsize) /* The style for the cells */ table_cell_props = new CssPropertyList (); - if (border != -1) { - cssLength = CSS_CREATE_LENGTH (border, CSS_LENGTH_TYPE_PX); - table_cell_props->set (CssProperty::CSS_PROPERTY_BORDER_TOP_WIDTH, cssLength); - table_cell_props->set (CssProperty::CSS_PROPERTY_BORDER_BOTTOM_WIDTH, cssLength); - table_cell_props->set (CssProperty::CSS_PROPERTY_BORDER_LEFT_WIDTH, cssLength); - table_cell_props->set (CssProperty::CSS_PROPERTY_BORDER_RIGHT_WIDTH, cssLength); - } - - if (dillo_dbg_rendering && border < 1) { + if (border > 0 || dillo_dbg_rendering) { cssLength = CSS_CREATE_LENGTH (1, CSS_LENGTH_TYPE_PX); table_cell_props->set (CssProperty::CSS_PROPERTY_BORDER_TOP_WIDTH, cssLength); table_cell_props->set (CssProperty::CSS_PROPERTY_BORDER_BOTTOM_WIDTH, cssLength); @@ -136,8 +126,6 @@ void Html_tag_open_table(DilloHtml *html, const char *tag, int tagsize) table_cell_props->set (CssProperty::CSS_PROPERTY_PADDING_RIGHT, cssLength); } - /** \todo figure out how to handle shaded colors with CSS */ - if (S_TOP(html)->table_cell_props) S_TOP(html)->table_cell_props->unref (); |