aboutsummaryrefslogtreecommitdiff
path: root/src/table.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-10-31 23:40:38 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-10-31 23:40:38 +0100
commitbef80608dea6e217b7014470b649bcfab0a9c0f4 (patch)
tree1f488f0a93a6839e5b4ddcfd968c071919d54081 /src/table.cc
parent90be8873a5cae7c0d67b4e4d43ca15ca8ef14159 (diff)
make ol work
Diffstat (limited to 'src/table.cc')
-rw-r--r--src/table.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/table.cc b/src/table.cc
index e0a0a624..815ce6c8 100644
--- a/src/table.cc
+++ b/src/table.cc
@@ -138,6 +138,7 @@ void Html_tag_open_tr(DilloHtml *html, const char *tag, int tagsize)
dw::core::style::Style *style, *old_style;
int32_t bgcolor = -1;
bool new_style = false;
+ CssPropertyList props;
#ifdef USE_TABLES
switch (S_TOP(html)->table_mode) {
@@ -171,7 +172,8 @@ void Html_tag_open_tr(DilloHtml *html, const char *tag, int tagsize)
if (a_Html_get_attr (html, tag, tagsize, "align")) {
S_TOP(html)->cell_text_align_set = TRUE;
- a_Html_tag_set_align_attr (html, tag, tagsize);
+ a_Html_tag_set_align_attr (html, &props, tag, tagsize);
+ html->styleEngine->setNonCssProperties (&props);
}
style_attrs = *S_TOP(html)->table_cell_style;
@@ -236,6 +238,7 @@ static void Html_tag_open_table_cell(DilloHtml *html,
dw::core::style::Style *style, *old_style;
int32_t bgcolor;
bool_t new_style;
+ CssPropertyList props;
switch (S_TOP(html)->table_mode) {
case DILLO_HTML_TABLE_MODE_NONE:
@@ -271,7 +274,8 @@ static void Html_tag_open_table_cell(DilloHtml *html,
// html->styleEngine->style () =
// Style::create (HT2LT(html), &style_attrs);
// old_style->unref ();
- a_Html_tag_set_align_attr (html, tag, tagsize);
+ a_Html_tag_set_align_attr (html, &props, tag, tagsize);
+ html->styleEngine->setNonCssProperties (&props);
/* cell style */
style_attrs = *S_TOP(html)->table_cell_style;