changeset 589:d82c6a91385f

call StyleEngine::startElement() in Html_force_push_tag() to fix assertions
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Fri, 14 Nov 2008 16:11:44 +0100
parents d49ff251ff8a
children eb1072890045
files src/html.cc src/styleengine.hh
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/html.cc	Thu Nov 13 21:52:42 2008 +0100
+++ b/src/html.cc	Fri Nov 14 16:11:44 2008 +0100
@@ -1270,6 +1270,7 @@
  */
 static void Html_force_push_tag(DilloHtml *html, int tag_idx)
 {
+   html->styleEngine->startElement (tag_idx);
    Html_push_tag(html, tag_idx);
 }
 
--- a/src/styleengine.hh	Thu Nov 13 21:52:42 2008 +0100
+++ b/src/styleengine.hh	Fri Nov 14 16:11:44 2008 +0100
@@ -37,8 +37,8 @@
             return NULL;
       };
 
-      void startElement (int tag, const char *id, const char *klass,
-         const char *style);
+      void startElement (int tag, const char *id = NULL, const char *klass = NULL,
+         const char *style = NULL);
       void endElement (int tag);
       void setNonCssProperties (CssPropertyList *props);
       void setPseudoClass (const char *pseudoClass);