aboutsummaryrefslogtreecommitdiff
path: root/src/table.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-11-10 20:07:48 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-11-10 20:07:48 +0100
commit827fe83a429f7bceebfde326c8cff7723f971edd (patch)
tree3a11d32824c9dc931196f593543e71eed6448d3b /src/table.cc
parentfb551355dfb2f49d56cdaab8a55ed3cb00ec7dc8 (diff)
add CSS_PROPERTY_BORDER_SPACING_HORIZONTAL, CSS_PROPERTY_BORDER_SPACING_VERTICAL
Diffstat (limited to 'src/table.cc')
-rw-r--r--src/table.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/table.cc b/src/table.cc
index 63e1ba0e..7c17cdd7 100644
--- a/src/table.cc
+++ b/src/table.cc
@@ -61,10 +61,10 @@ void Html_tag_open_table(DilloHtml *html, const char *tag, int tagsize)
if (border != -1)
props.set (CssProperty::CSS_PROPERTY_BORDER_WIDTH, border);
- if (cellspacing != -1)
- props.set (CssProperty::CSS_PROPERTY_BORDER_SPACING, cellspacing);
-
- props.set (CssProperty::CSS_PROPERTY_BORDER_STYLE, BORDER_OUTSET);
+ if (cellspacing != -1) {
+ props.set (CssProperty::CSS_PROPERTY_BORDER_SPACING_HORIZONTAL, cellspacing);
+ props.set (CssProperty::CSS_PROPERTY_BORDER_SPACING_VERTICAL, cellspacing);
+ }
/* When dillo was started with the --debug-rendering option, there
* is always a border around the table. */
@@ -109,7 +109,6 @@ void Html_tag_open_table(DilloHtml *html, const char *tag, int tagsize)
table_cell_props->set (CssProperty::CSS_PROPERTY_PADDING, cellpadding);
/** \todo figure out how to implement shaded colors with CSS */
table_cell_props->set (CssProperty::CSS_PROPERTY_BORDER_COLOR, 0x000000);
- table_cell_props->set (CssProperty::CSS_PROPERTY_BORDER_STYLE, BORDER_INSET);
if (S_TOP(html)->table_cell_props)
S_TOP(html)->table_cell_props->unref ();