From c1448e715d6f69c88e63dd8473dbb843272afa63 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sun, 16 Sep 2012 19:41:46 +0200 Subject: fix erroneous BUG_MSG in display:none case Move BUG_MSG() checks to the Html_tag_content_* function to avoid erroneous BUG_MSG in display:none case. --- src/table.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/table.cc b/src/table.cc index 27de6bfc..98157e76 100644 --- a/src/table.cc +++ b/src/table.cc @@ -349,13 +349,9 @@ static void Html_tag_open_table_cell(DilloHtml *html, switch (S_TOP(html)->table_mode) { case DILLO_HTML_TABLE_MODE_NONE: - BUG_MSG(" outside \n", - (tagsize >=3 && (D_ASCII_TOLOWER(tag[2]) == 'd')) ? 'd' : 'h'); return; case DILLO_HTML_TABLE_MODE_TOP: - BUG_MSG(" outside \n", - (tagsize >=3 && (D_ASCII_TOLOWER(tag[2]) == 'd')) ? 'd' : 'h'); /* a_Dw_table_add_cell takes care that dillo does not crash. */ /* continues */ case DILLO_HTML_TABLE_MODE_TR: @@ -401,6 +397,8 @@ static void Html_tag_content_table_cell(DilloHtml *html, switch (S_TOP(html)->table_mode) { case DILLO_HTML_TABLE_MODE_NONE: + BUG_MSG(" outside
\n", + (tagsize >=3 && (D_ASCII_TOLOWER(tag[2]) == 'd')) ? 'd' : 'h'); return; case DILLO_HTML_TABLE_MODE_TOP: -- cgit v1.2.3