diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-11-12 16:25:01 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2008-11-12 16:25:01 +0100 |
commit | 55e1d883bd14a2412b5605b04b226f0f12214c2c (patch) | |
tree | 4c88eb6b079cd9fa746053bb2b5cdcd1ee0ba397 /src | |
parent | d09211b48b1f9041ed3ae3933b8a7cfab9d40eaa (diff) |
tag -> element
Diffstat (limited to 'src')
-rw-r--r-- | src/styleengine.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc index 6d6d3085..ca0bca64 100644 --- a/src/styleengine.cc +++ b/src/styleengine.cc @@ -45,9 +45,9 @@ StyleEngine::~StyleEngine () { /** * \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 @@ void StyleEngine::startElement (int tag, const char *id, const char *klass, 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 @@ void StyleEngine::setPseudoClass (const char *pseudo) { /** * \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) |