changeset 563:b384452e32fb

tag -> element
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Wed, 12 Nov 2008 16:25:01 +0100
parents 145b8a4d65b3
children aed331c304a9
files src/styleengine.cc
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/styleengine.cc	Wed Nov 12 16:17:35 2008 +0100
+++ b/src/styleengine.cc	Wed Nov 12 16:25:01 2008 +0100
@@ -45,9 +45,9 @@
 /**
  * \brief tell the styleEngine that a new html element has started.
  */
-void StyleEngine::startElement (int tag, const char *id, const char *klass,
+void StyleEngine::startElement (int element, const char *id, const char *klass,
    const char *style) {
-//   fprintf(stderr, "===> START %d %s %s %s\n", tag, id, klass, style);
+//   fprintf(stderr, "===> START %d %s %s %s\n", element, id, klass, style);
 
    if (stack->getRef (stack->size () - 1)->style == NULL)
       style0 ();
@@ -56,7 +56,7 @@
    Node *n =  stack->getRef (stack->size () - 1);
    n->style = NULL;
    n->depth = stack->size ();
-   n->tag = tag;
+   n->element = element;
    n->id = id;
    n->klass = klass;
    n->pseudo = NULL;
@@ -83,10 +83,10 @@
 /**
  * \brief tell the styleEngine that a html element has ended.
  */
-void StyleEngine::endElement (int tag) {
-//   fprintf(stderr, "===> END %d\n", tag);
+void StyleEngine::endElement (int element) {
+//   fprintf(stderr, "===> END %d\n", element);
    assert (stack->size () > 1);
-   assert (tag == stack->getRef (stack->size () - 1)->tag);
+   assert (element == stack->getRef (stack->size () - 1)->element);
 
    Node *n =  stack->getRef (stack->size () - 1);
    if (n->style)