summaryrefslogtreecommitdiff
path: root/src/treebuilder/in_row.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-07-09 15:01:05 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-07-09 15:01:05 +0000
commit5ff90817b11f159af1261ef60de983030f358974 (patch)
tree24d4dcd272fc6dc02c1438ec4b6e2a1e6328fd73 /src/treebuilder/in_row.c
parent4e2e1e29d3c9bce23a24073ac60aa5025acf4e5c (diff)
downloadlibhubbub-5ff90817b11f159af1261ef60de983030f358974.tar.gz
libhubbub-5ff90817b11f159af1261ef60de983030f358974.tar.bz2
Further table fixes, and minor tidying.
svn path=/trunk/hubbub/; revision=4542
Diffstat (limited to 'src/treebuilder/in_row.c')
-rw-r--r--src/treebuilder/in_row.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/treebuilder/in_row.c b/src/treebuilder/in_row.c
index fdbaf83..c7afb1c 100644
--- a/src/treebuilder/in_row.c
+++ b/src/treebuilder/in_row.c
@@ -15,14 +15,13 @@
/**
- * Clear the stack back to a table body context.
+ * Clear the stack back to a table row context.
*
* \param treebuilder The treebuilder instance
*/
static void table_clear_stack(hubbub_treebuilder *treebuilder)
{
- element_type cur_node = treebuilder->context.element_stack[
- treebuilder->context.current_node].type;
+ element_type cur_node = current_node(treebuilder);
while (cur_node != TR && cur_node != HTML) {
hubbub_ns ns;
@@ -37,8 +36,7 @@ static void table_clear_stack(hubbub_treebuilder *treebuilder)
treebuilder->tree_handler->ctx,
node);
- cur_node = treebuilder->context.element_stack[
- treebuilder->context.current_node].type;
+ cur_node = current_node(treebuilder);
}
return;