diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-11-07 20:47:42 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-11-07 20:47:42 +0100 |
commit | 8ab7dd2af3b0230112fbdd552f9461dda6371cea (patch) | |
tree | 961d4410226e4fe4c48d71abc85d5a7b4863b5ef /src/table.cc | |
parent | 7cd57f638232a8a066d257de0e032ae9682cbd62 (diff) |
make CssProperty::Value a union of int and char*
Diffstat (limited to 'src/table.cc')
-rw-r--r-- | src/table.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/table.cc b/src/table.cc index 04c98f5f..97f53064 100644 --- a/src/table.cc +++ b/src/table.cc @@ -239,7 +239,6 @@ static void Html_tag_open_table_cell(DilloHtml *html, Style *style; bool_t new_style; CssPropertyList props; - CssProperty::Value v; switch (S_TOP(html)->table_mode) { case DILLO_HTML_TABLE_MODE_NONE: @@ -264,14 +263,12 @@ static void Html_tag_open_table_cell(DilloHtml *html, /* text style */ if (!S_TOP(html)->cell_text_align_set) { - v.textAlignType = text_align; - props.set (CssProperty::CSS_PROPERTY_TEXT_ALIGN, v); + props.set (CssProperty::CSS_PROPERTY_TEXT_ALIGN, text_align); } if (a_Html_get_attr(html, tag, tagsize, "nowrap")) - v.whiteSpace = WHITE_SPACE_NOWRAP; + props.set (CssProperty::CSS_PROPERTY_WHITE_SPACE, WHITE_SPACE_NOWRAP); else - v.whiteSpace = WHITE_SPACE_NORMAL; - props.set (CssProperty::CSS_PROPERTY_WHITE_SPACE, v); + props.set (CssProperty::CSS_PROPERTY_WHITE_SPACE, WHITE_SPACE_NORMAL); // html->styleEngine->style () = // Style::create (HT2LT(html), &style_attrs); |