diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-12-17 17:51:12 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-12-17 17:51:12 +0100 |
commit | 9716e65edda24f8a28b77caf0064eace9ff35073 (patch) | |
tree | bb69d9226a618f3f479d89848a19d993bc42f4ee | |
parent | 434f83c6f4c5979f5f1db865fda7ea6894c907b9 (diff) |
remove dillo_dbg_rendering from table.cc
One can get a similar effect by adding
table, td {border: 1px solid black !important}
to the user stylesheet.
-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 82b6beb2..e06849a5 100644 --- a/src/table.cc +++ b/src/table.cc @@ -23,8 +23,6 @@ /* Undefine if you want to unroll tables. For instance for PDAs */ #define USE_TABLES -#define dillo_dbg_rendering 0 - using namespace dw; using namespace dw::core; using namespace dw::core::style; @@ -73,16 +71,6 @@ void Html_tag_open_table(DilloHtml *html, const char *tag, int tagsize) props.set (CssProperty::CSS_PROPERTY_BORDER_SPACING, cssLength); } - /* When dillo was started with the --debug-rendering option, there - * is always a border around the table. */ - if (dillo_dbg_rendering && border < 1) { - cssLength = CSS_CREATE_LENGTH (1, CSS_LENGTH_TYPE_PX); - props.set (CssProperty::CSS_PROPERTY_BORDER_TOP_WIDTH, cssLength); - props.set (CssProperty::CSS_PROPERTY_BORDER_BOTTOM_WIDTH, cssLength); - props.set (CssProperty::CSS_PROPERTY_BORDER_LEFT_WIDTH, cssLength); - props.set (CssProperty::CSS_PROPERTY_BORDER_RIGHT_WIDTH, cssLength); - } - if ((attrbuf = a_Html_get_attr(html, tag, tagsize, "width"))) props.set (CssProperty::CSS_PROPERTY_WIDTH, a_Html_parse_length (html, attrbuf)); @@ -110,7 +98,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 > 0 || dillo_dbg_rendering) { + if (border > 0) { 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); |