changeset 692:920b9f4cabf3

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.
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Wed, 17 Dec 2008 17:51:12 +0100
parents 276d5db980b6
children 478dfc078e12
files src/table.cc
diffstat 1 files changed, 1 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/src/table.cc	Wed Dec 17 17:14:12 2008 +0100
+++ b/src/table.cc	Wed Dec 17 17:51:12 2008 +0100
@@ -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 @@
       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 @@
 
    /* 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);